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

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