0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 08:41:02 +08:00

Build if profiler disabled

This commit is contained in:
Sergey Yagovtsev 2016-06-20 22:43:45 +03:00
parent 8c746fc991
commit b26673b8ba

View File

@ -156,6 +156,8 @@ void foo()
#define PROFILER_END_BLOCK profiler::endBlock();
#define PROFILER_ENABLE profiler::setEnabled(true);
#define PROFILER_DISABLE profiler::setEnabled(false);
#define PROFILER_ADD_EVENT(name)
#define PROFILER_ADD_EVENT_GROUPED(name,block_group)
#endif
#include <stdint.h>