diff mc-macro.c @ 705:0554b7f985ee parse-mode

parse mode done.
author kono
date Wed, 24 Oct 2007 10:39:57 +0900
parents 5d3b4669854c
children 35e6841ba01a
line wrap: on
line diff
--- a/mc-macro.c	Wed Oct 24 00:13:06 2007 +0900
+++ b/mc-macro.c	Wed Oct 24 10:39:57 2007 +0900
@@ -26,6 +26,7 @@
 #include "mc-macro.h"
 #include "mc-codegen.h"
 #include "mc-code.h"
+#include "mc-inline.h"
 
 extern struct {int fd,ln;char *name0;int inc;FILE *fcb;} *filep,filestack[FILES];
 
@@ -468,6 +469,7 @@
     getsym(0);
     /* i=cexpr(expr(1)); #if allow undefined symbols.. */
     i=expr(1); 
+    if (inmode) i = pexpr(i);  // it contain const value only
     in_macro_if = 0;
     if (car(i)==CONST) i=cadr(i);
     else i=0;