This commit is contained in:
Hizenberg469 committed 2025-01-10 20:44:19 +05:30
1 parent 989941a37b
commit bf654075a3
19 files changed
+283 -56

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#ifndef __DEBUG__
#define __DEBUG__
/*
* var_name: to display variable name used
* var_value: to display variable value with variable name.
*/
#define var_name(arg) #arg
#ifdef NPRINT_VAR
#define var_value(arg) ((void)0)
#else
#define var_value(arg) cout << var_name(arg) << ": " << arg << endl;
#endif
#endif