apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@xbc.nu>
Subject Re: Does anyone want this committed?
Date Thu, 02 Aug 2001 22:51:44 GMT
William A. Rowe, Jr. wrote:

>2. I can't figure out how to stringize __LINE__, which sort of sucks.
The Well Known Hack is

    #define REALLY_STRINGIFY(S) #S

    char this_line_number[] = STRINGIFY(__LINE__);

Brane ─îibej
    home:   <brane@xbc.nu>             http://www.xbc.nu/brane/
    work:   <branko.cibej@hermes.si>   http://www.hermes-softlab.com/
     ACM :   <brane@acm.org>            http://www.acm.org/

View raw message