diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-08 07:36:47 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-08 07:36:47 +0330 |
commit | 65f7f06d010e705d70f47db48b371f81d09914ea (patch) | |
tree | 93bc674142eb91ec603a8c3b33e690828fb1b1de /src/utils/log.h | |
parent | c2939352858f8471fb69ae629948a259552231bc (diff) |
add support for tcc
Diffstat (limited to 'src/utils/log.h')
-rw-r--r-- | src/utils/log.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/log.h b/src/utils/log.h index 510170f..eb9034f 100644 --- a/src/utils/log.h +++ b/src/utils/log.h @@ -1,5 +1,11 @@ #pragma once +#include "utils/type.h" + +#ifndef __FILE_NAME__ +#define __FILE_NAME__ __FILE__ +#endif + #define printLog(format,...) _printLogBack(format, __FILE_NAME__, __LINE__, ## __VA_ARGS__) #define printError(begin,end,format,...) _printErrorWarningBack(__FILE_NAME__, __LINE__, begin, end, true, format, ## __VA_ARGS__) #define printWarning(begin,end,format,...) _printErrorWarningBack(__FILE_NAME__, __LINE__, begin, end, false, format, ## __VA_ARGS__) |