X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fcpp2%2Fcppmacro.c;h=ed02b2ab2842b368d9a69a57a97016ee14c6089c;hb=60cb2e605644de2556d5b30c29ab62c566b96d1e;hp=643aeefca3a0f9dcdb0ca74e30e2bf18e7319243;hpb=eba7e6b0e55b0da34ba1db2a89e2e26e4f1ff0ad;p=fw%2Fsdcc diff --git a/support/cpp2/cppmacro.c b/support/cpp2/cppmacro.c index 643aeefc..ed02b2ab 100644 --- a/support/cpp2/cppmacro.c +++ b/support/cpp2/cppmacro.c @@ -1420,7 +1420,8 @@ _cpp_create_definition (pfile, node) macro->count--; } /* Let assembler get away with murder. */ - else if (CPP_OPTION (pfile, lang) != CLK_ASM) + else if ((CPP_OPTION (pfile, lang) != CLK_ASM) + && (!CPP_OPTION(pfile, allow_naked_hash))) { ok = 0; cpp_error (pfile, "'#' is not followed by a macro parameter");