get rid of __VA_OPT__
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
#pragma once
|
||||
#ifdef _WIN32
|
||||
#define log(format, ...) _log(__FUNCTION__, format, __VA_ARGS__)
|
||||
#define log_error(format, ...) _log_error(__FUNCTION__, format, __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
|
||||
|
||||
#define log(...) _log(__FUNCTION__, __VA_ARGS__)
|
||||
#define log_error(...) _log_error(__FUNCTION__, __VA_ARGS__)
|
||||
|
||||
void _log(const char* function_name, const char* format, ...);
|
||||
void _log_error(const char* function_name, const char* format, ...);
|
||||
Reference in New Issue
Block a user