Quellcode durchsuchen

BLog: add BContextLog macro

ambrop7 vor 13 Jahren
Ursprung
Commit
cabd8abb7f
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      base/BLog.h

+ 1 - 0
base/BLog.h

@@ -51,6 +51,7 @@
 #define BLOG_DEBUG 5
 
 #define BLog(...) BLog_LogToChannel(BLOG_CURRENT_CHANNEL, __VA_ARGS__)
+#define BContextLog(context, ...) BLog_ContextLog((context), BLOG_CURRENT_CHANNEL, __VA_ARGS__)
 #define BLOG_CCCC(context) BLog_MakeChannelContext((context), BLOG_CURRENT_CHANNEL)
 
 typedef void (*_BLog_log_func) (int channel, int level, const char *msg);