Create debug function that abuses preprocessor
This commit is contained in:
parent
c2c4804a89
commit
514cb20064
@ -0,0 +1,10 @@
|
||||
#ifndef __UTILS__
|
||||
#define __UTILS__
|
||||
|
||||
#ifdef DBG
|
||||
#define DEBUG(msg) std::cout << __FILE__ << " " << __LINE__ << ": " << msg << std::endl
|
||||
#else
|
||||
#define DEBUG(msg)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue
Block a user