forked from bartvdbraak/blender
Fix logger build w/ MSVC
This commit is contained in:
parent
1ebc14064b
commit
af11eea3fd
@ -37,6 +37,11 @@ extern "C" {
|
||||
# define _CLOG_ATTR_PRINTF_FORMAT(format_param, dots_param)
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && !defined(__func__)
|
||||
# define __func__MSVC
|
||||
# define __func__ __FUNCTION__
|
||||
#endif
|
||||
|
||||
#define STRINGIFY_ARG(x) "" #x
|
||||
#define STRINGIFY_APPEND(a, b) "" a #b
|
||||
#define STRINGIFY(x) STRINGIFY_APPEND("", x)
|
||||
@ -140,6 +145,10 @@ void CLG_logref_init(CLG_LogRef *clg_ref);
|
||||
#define CLOG_STR_ERROR_N(clg_ref, ...) CLOG_STR_AT_SEVERITY_N(clg_ref, CLG_SEVERITY_ERROR, 0, __VA_ARGS__)
|
||||
#define CLOG_STR_FATAL_N(clg_ref, ...) CLOG_STR_AT_SEVERITY_N(clg_ref, CLG_SEVERITY_FATAL, 0, __VA_ARGS__)
|
||||
|
||||
#ifdef __func__MSVC
|
||||
# undef __func__MSVC
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user