mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add better trace peudo-loglevel support
This commit is contained in:
parent
388906ac70
commit
1f670fc688
3 changed files with 9 additions and 2 deletions
|
@ -69,5 +69,10 @@ extern std::ostream actionstream;
|
|||
extern std::ostream infostream;
|
||||
extern std::ostream verbosestream;
|
||||
|
||||
extern bool log_trace_level_enabled;
|
||||
|
||||
#define TRACESTREAM(x){ if(log_trace_level_enabled) verbosestream x; }
|
||||
#define TRACEDO(x){ if(log_trace_level_enabled){ x ;} }
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue