* you also need to use logging explicitly.
*/
-#ifndef BABELTRACE_LOGGING_INTERNAL_H
+#ifndef BT_LOG_SUPPORTED
# error Include "logging/log.h" before this header.
#endif
* need to use logging explicitly.
*/
-#ifndef BABELTRACE_LIB_LOGGING_INTERNAL_H
+#ifndef BT_LIB_LOG_SUPPORTED
# error Include "lib/lib-logging.h" before this header.
#endif
void bt_lib_log(const char *func, const char *file, unsigned line,
int lvl, const char *tag, const char *fmt, ...);
+#define BT_LIB_LOG_SUPPORTED
+
#endif /* BABELTRACE_LIB_LOGGING_INTERNAL_H */
#include "plugin-so.h"
/* Protection: this file uses BT_LIB_LOG*() macros directly */
-#ifndef BABELTRACE_LIB_LOGGING_INTERNAL_H
+#ifndef BT_LIB_LOG_SUPPORTED
# error Please include "lib/lib-logging.h" before including this file.
#endif
*/
/* Protection: this file uses BT_LIB_LOG*() macros directly */
-#ifndef BABELTRACE_LIB_LOGGING_INTERNAL_H
+#ifndef BT_LIB_LOG_SUPPORTED
# error Please include "lib/lib-logging.h" before including this file.
#endif
_level_sym = bt_log_get_level_from_env(_env_var); \
}
+#define BT_LOG_SUPPORTED
+
#ifdef __cplusplus
}
#endif
#define BT_COMP_LOGV_MEM(_data_ptr, _data_sz, _fmt, ...) \
BT_COMP_LOG_MEM(BT_LOG_VERBOSE, (BT_COMP_LOG_SELF_COMP), (_data_ptr), (_data_sz), _fmt, ##__VA_ARGS__)
+#define BT_COMP_LOG_SUPPORTED
+
#endif /* BABELTRACE_PLUGINS_COMP_LOGGING_H */