Create debug function that abuses preprocessor

This commit is contained in:
Cory Balaton 2023-09-17 16:21:46 +02:00
parent c2c4804a89
commit 514cb20064
No known key found for this signature in database
GPG Key ID: 3E5FCEBFD80F432B

View File

@ -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