Create debug function that abuses preprocessor
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user