aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-10-04 14:46:11 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-10-04 14:49:05 +0900
commitcb33c0a0498628ded34a5c9719d6807047a8b2cd (patch)
tree8d1ebd74afb59950f0b61ed0c66448794e45cffd
parent50cc85d3dea93735fe352831421eea2fcf9c24c5 (diff)
downloadlibquotient-cb33c0a0498628ded34a5c9719d6807047a8b2cd.tar.gz
libquotient-cb33c0a0498628ded34a5c9719d6807047a8b2cd.zip
events.h: #ifndef DISABLE_EVENTTYPE -> #ifdef ENABLE_EVENTTYPE_ALIAS
This turns off the legacy EventType namespace with event type aliases (EventType::RoomMessageEvent etc.). To still use it, pass - DENABLE_EVENTTYPE_ALIAS to the compiler.
-rw-r--r--lib/events/event.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/events/event.h b/lib/events/event.h
index cd23a818..5b33628f 100644
--- a/lib/events/event.h
+++ b/lib/events/event.h
@@ -21,8 +21,8 @@
#include "converters.h"
#include "logging.h"
-#ifndef DISABLE_EVENTTYPE
-#define USE_EVENTTYPE 1
+#ifdef ENABLE_EVENTTYPE_ALIAS
+#define USE_EVENTTYPE_ALIAS 1
#endif
namespace QMatrixClient
@@ -292,7 +292,7 @@ namespace QMatrixClient
} \
// End of macro
-#ifdef USE_EVENTTYPE
+#ifdef USE_EVENTTYPE_ALIAS
namespace EventType
{
inline event_type_t logEventType(event_type_t id, const char* idName)