This commit is contained in:
parent
fb05b3394a
commit
75f727e63c
1 changed files with 1 additions and 5 deletions
|
@ -1,5 +1,3 @@
|
||||||
```cpp
|
|
||||||
|
|
||||||
///Used to obtain the string name of a variable.
|
///Used to obtain the string name of a variable.
|
||||||
|
|
||||||
#define nameof(name) template_nameof((name), #name)
|
#define nameof(name) template_nameof((name), #name)
|
||||||
|
@ -12,6 +10,4 @@ const char* template_nameof(T test, const char* name)
|
||||||
|
|
||||||
// int test = 0;
|
// int test = 0;
|
||||||
// std::cout << nameof(test) << std::endl;
|
// std::cout << nameof(test) << std::endl;
|
||||||
// prints "test”
|
// prints "test”
|
||||||
|
|
||||||
```
|
|
Loading…
Reference in a new issue