fix(clang): format utils files.

This commit is contained in:
damien DELPY 2025-03-21 15:18:39 +01:00
parent 54b8236625
commit ad460cc15b
No known key found for this signature in database
2 changed files with 8 additions and 8 deletions

2
src/utils/ansi_colors.h Executable file → Normal file
View File

@ -10,7 +10,7 @@
* *
* For more information, please refer to <https://unlicense.org> * For more information, please refer to <https://unlicense.org>
*/ */
#if NCOLOR // if we are in no color mode, replace all the define by "" #if NCOLOR // if we are in no color mode, replace all the define by ""
// Regular text // Regular text
#define BLK "" #define BLK ""

14
src/utils/debug.h Executable file → Normal file
View File

@ -18,21 +18,21 @@
* DEBUG Macro * DEBUG Macro
*/ */
#define DBG(str, ...) \ #define DBG(str, ...) \
fprintf(stderr, "\033[31mDEBUG:\033[0m " str "\n", ##__VA_ARGS__) fprintf(stderr, "\033[31mDEBUG:\033[0m " str "\n", ##__VA_ARGS__)
#endif // DEBUG #endif // DEBUG
#ifndef NTRACE #ifndef NTRACE
/* /*
* TRACE Macro * TRACE Macro
*/ */
#define TRACE(str, ...) \ #define TRACE(str, ...) \
fprintf(stderr, "\033[32mTRACE: %s: \033[0m " str "\n", __FILE__, \ fprintf(stderr, "\033[32mTRACE: %s: \033[0m " str "\n", __FILE__, \
##__VA_ARGS__) ##__VA_ARGS__)
#else #else
#define TRACE(str, ...) #define TRACE(str, ...)
#endif // NTRACE #endif // NTRACE
// //
#endif // !__DEBUG_H__ #endif // !__DEBUG_H__