macros question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Arro

    macros question

    so, we have built-in __FILE__ and __LINE__

    how could we define
    __FILELINE__ macros so it would be smth like, for example, "file.c:11"

    i've tried
    #define __FILELINE__ __FILE__ ## ":" ## __LINE__
    and
    #define __FILELINE__ __FILE__ ## ":" ## #__LINE__

    and a bunch of different combinations but none work for me :(
Working...