fix(clang): format utils files.
This commit is contained in:
parent
54b8236625
commit
ad460cc15b
2
src/utils/ansi_colors.h
Executable file → Normal file
2
src/utils/ansi_colors.h
Executable file → Normal 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
14
src/utils/debug.h
Executable file → Normal 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__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user