Search:

Type: Posts; User: ggambett

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    2,897

    And what is that reason?

    And what is that reason?
  2. Replies
    6
    Views
    2,897

    Sorry for the confusion. "If I put __FUNCTION__...

    Sorry for the confusion. "If I put __FUNCTION__ inside main() instead of through a macro the result is the same" meant yes.

    Anyway, I now believe there's no solution - concatenating __FUNCTION__...
  3. Replies
    6
    Views
    2,897

    Yes. I investigated a little further, and came to...

    Yes. I investigated a little further, and came to this : the following code

    #define FOOBAR const char* __fnname = __FUNCTION__ "A";
    #define QUUX const char* __fnname = __FILE__ "A";

    int main...
  4. Replies
    6
    Views
    2,897

    Preprocessor string pasting fun

    Hi guys, my first post here.

    I'm having trouble doing string concatenation at the preprocessor level.

    This works fine :

    #define A "TOKEN1" "TOKEN2"
    and this also works fine:

    #define A...
Results 1 to 4 of 4