1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Minor optimizations

This commit is contained in:
Brian Fiete 2022-05-04 12:51:45 -07:00
parent 0c955e5c66
commit 3736281ff7
4 changed files with 25 additions and 13 deletions

View file

@ -1861,6 +1861,13 @@ public:
#define BfLog(fmt, ...) {} // Nothing
#endif
#ifdef BF_WANTS_LOG
#define BfLogX(logIdx, fmt, ...) DoBfLog(logIdx, fmt, ##__VA_ARGS__)
#else
#define BfLogX(logIdx, fmt, ...) {} // Nothing
#endif
#ifdef BF_WANTS_LOG_SYS
#define BfLogSys(sys, fmt, ...) DoBfLog((sys)->mIsResolveOnly ? 1 : 2, fmt, ##__VA_ARGS__)
#define BfLogSysM(fmt, ...) DoBfLog(mSystem->mIsResolveOnly ? 1 : 2, fmt, ##__VA_ARGS__)