[lkml]   [2001]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [IDEA+RFC] Possible solution for min()/max() war
    On Thu, Aug 30, 2001 at 11:32:55PM +0200, Peter T. Breuer wrote:

    > Now I think of it, I suppose
    > unsafe_min_or_max_at_line_##__LINE__()
    > will definitely evoke a meaningful link error.

    umm, no, the ## is removed and you are left with:
    undefined reference to `unsafe_min_or_max_at_line___LINE__'

    The best I can think of would be something like:
    asm(".unsafe_use_of_min_or_max_in_" __FUNCTION__)

    which would not give you the line number, as the line number is only avalable in
    integer form, I doubt you will be able to get that very well. The assembler will
    give a line in relation to the asm, rather than the C, which is not what you

    > I still suspect that illegal assembler will do the job, since it must
    > be treated after gcc has produced assembler itself and line references
    > must still be present then for the assembler to be able to give meaningful
    > error messages (;), but assembler is not something I write, so someone
    > else needs to say.

    Those are in relation to the assembler, not the C code..


    Mark Zealey

    UL++++>$ G!>(GCM/GCS/GS/GM) dpu? s:-@ a16! C++++>$ P++++>+++++$ L+++>+++++$
    !E---? W+++>$ N- !o? !w--- O? !M? !V? !PS !PE--@ PGP+? r++ !t---?@ !X---?
    !R- b+ !tv b+ DI+ D+? G+++ e>+++++ !h++* r!-- y--

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:01    [W:0.023 / U:6.524 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site