PayloadFromRPX/source/utils/logger.h

21 lines
623 B
C
Raw Normal View History

2020-04-26 13:41:39 +02:00
#pragma once
2020-07-22 15:12:25 +02:00
2020-04-26 13:41:39 +02:00
#include <string.h>
2022-03-05 17:00:58 +01:00
#include <whb/log.h>
2020-04-26 13:41:39 +02:00
#ifdef __cplusplus
extern "C" {
#endif
#define __FILENAME_X__ (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)
2022-03-05 17:00:58 +01:00
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILENAME_X__)
2020-04-26 13:41:39 +02:00
2022-03-05 17:00:58 +01:00
#define DEBUG_FUNCTION_LINE(FMT, ARGS...) \
do { \
WHBLogPrintf("[%23s]%30s@L%04d: " FMT "", __FILENAME__, __FUNCTION__, __LINE__, ##ARGS); \
2020-04-26 13:41:39 +02:00
} while (0)
#ifdef __cplusplus
}
#endif