Fix missing file
This commit is contained in:
parent
ad3a55ab81
commit
c47d0905a9
13
util/macros.h
Normal file
13
util/macros.h
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef VOXEL_MACROS_H
|
||||
#define VOXEL_MACROS_H
|
||||
|
||||
#include <core/os/os.h>
|
||||
|
||||
// print_verbose() is used everywhere in the engine, but its drawback is that even if you turn it off, strings
|
||||
// you print are still allocated and formatted, to not be used. This macro avoids the string.
|
||||
#define PRINT_VERBOSE(msg) \
|
||||
if (OS::get_singleton()->is_stdout_verbose()) { \
|
||||
print_line(msg); \
|
||||
}
|
||||
|
||||
#endif // VOXEL_MACROS_H
|
Loading…
x
Reference in New Issue
Block a user