Finish: Change order of SET_xxx() macros. (this will allow me to simplify the print_setter() methods later on)
authormjsousa
Sun, 30 Mar 2014 09:41:06 +0100
changeset 886 111414d79ecd
parent 885 b2604fc6d25c
child 887 a5e2eedeef53
Finish: Change order of SET_xxx() macros. (this will allow me to simplify the print_setter() methods later on)
stage4/generate_c/generate_c_base.cc
--- a/stage4/generate_c/generate_c_base.cc	Sat Mar 29 22:46:09 2014 +0000
+++ b/stage4/generate_c/generate_c_base.cc	Sun Mar 30 09:41:06 2014 +0100
@@ -270,10 +270,9 @@
 
     /* Do not use print_token() as it will change everything into uppercase */
     void *visit(pragma_c *symbol) {
-        s4o.print(s4o.indent_spaces);
         s4o.print("#define GetFbVar(var,...) __GET_VAR(data__->var,__VA_ARGS__)\n");
         s4o.print(s4o.indent_spaces);
-        s4o.print("#define SetFbVar(var,val,...) __SET_VAR(data__->,var,val,__VA_ARGS__)\n");
+        s4o.print("#define SetFbVar(var,val,...) __SET_VAR(data__->,var,__VA_ARGS__,val)\n");
         s4o.print(symbol->value);
         s4o.print("\n");
         s4o.print(s4o.indent_spaces);