2 ms·
If you want the name of a variable in eg. an assert you need the # operator unless you require the programmer to manually write the name as a string.
by rightbyte 7y ago
If you want the name of a variable in eg. an assert you need the # operator unless you require the programmer to manually write the name as a string.
- sesuximo 7y agoYou could also 1) parse the source file 2) find the debug info and read it 3) hack the compiler to do this for you