[Gd-chatter] r11118 - trunk/src/tools/melange

bruce at gwydiondylan.org bruce at gwydiondylan.org
Sat Dec 30 11:28:01 CET 2006


Author: bruce
Date: Sat Dec 30 11:28:00 2006
New Revision: 11118

Modified:
   trunk/src/tools/melange/c-parse.input
Log:
Bug: 7293
Relax melange restriction on not evaluating defined() in definitions

Modified: trunk/src/tools/melange/c-parse.input
==============================================================================
--- trunk/src/tools/melange/c-parse.input	(original)
+++ trunk/src/tools/melange/c-parse.input	Sat Dec 30 11:28:00 2006
@@ -399,7 +399,8 @@
   // CPP line, we should be prepared to evaluate the pseudo-function
   // "defined".
   //
-  if (~instance?(@0, <parse-cpp-state>) | %1.string-value ~= "defined")
+  //if (~instance?(@0, <parse-cpp-state>) | %1.string-value ~= "defined")
+  if (%1.string-value ~= "defined")
     let definition = element(%1.generator.cpp-table, %1.string-value,
 			  default: #f);
     if (definition ~= #f)



More information about the chatter mailing list