get rid of __VA_OPT__
This commit is contained in:
parent
832c23f85c
commit
3bf7cf7a17
10
src/log.h
10
src/log.h
@ -1,11 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#ifdef _WIN32
|
|
||||||
#define log(format, ...) _log(__FUNCTION__, format, __VA_ARGS__)
|
#define log(...) _log(__FUNCTION__, __VA_ARGS__)
|
||||||
#define log_error(format, ...) _log_error(__FUNCTION__, format, __VA_ARGS__)
|
#define log_error(...) _log_error(__FUNCTION__, __VA_ARGS__)
|
||||||
#else
|
|
||||||
#define log(format, ...) _log(__FUNCTION__, format __VA_OPT__(,) __VA_ARGS__)
|
|
||||||
#define log_error(format, ...) _log_error(__FUNCTION__, format __VA_OPT__(,) __VA_ARGS__)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void _log(const char* function_name, const char* format, ...);
|
void _log(const char* function_name, const char* format, ...);
|
||||||
void _log_error(const char* function_name, const char* format, ...);
|
void _log_error(const char* function_name, const char* format, ...);
|
||||||
Loading…
x
Reference in New Issue
Block a user