Y
Hacker News
new
|
ask
|
show
|
jobs
by
rightbyte
2235 days 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.
1 comments
sesuximo
2235 days ago
You could also
1) parse the source file
2) find the debug info and read it
3) hack the compiler to do this for you
link
1) parse the source file
2) find the debug info and read it
3) hack the compiler to do this for you