P
pistmaster
Hi,
I am trying the use the current line number in my logging and I want
to stringify it so that I know the size of the buffer required to
output the log string. I would have though I could use #__LINE__ in a
macro like:
#define LOG_ERROR(err) LogError(err, __FILE__, #__LINE__)
but all i get in the output is #<linenumber>. Why should this be?
And is there another way to accomplish what i am trying to do.
Thanks
I am trying the use the current line number in my logging and I want
to stringify it so that I know the size of the buffer required to
output the log string. I would have though I could use #__LINE__ in a
macro like:
#define LOG_ERROR(err) LogError(err, __FILE__, #__LINE__)
but all i get in the output is #<linenumber>. Why should this be?
And is there another way to accomplish what i am trying to do.
Thanks