stage4/generate_c/generate_c_sfc.cc
changeset 121 9e8ce092e169
parent 120 74640e3c7f53
child 125 7ec16536bc87
equal deleted inserted replaced
120:74640e3c7f53 121:9e8ce092e169
   353           s4o.print(s4o.indent_spaces + "if(");
   353           s4o.print(s4o.indent_spaces + "if(");
   354           print_variable_prefix();
   354           print_variable_prefix();
   355           s4o.print("action_list[");
   355           s4o.print("action_list[");
   356           s4o.print(SFC_STEP_ACTION_PREFIX);
   356           s4o.print(SFC_STEP_ACTION_PREFIX);
   357           symbol->action_name->accept(*this);
   357           symbol->action_name->accept(*this);
   358           s4o.print("].state) {");
   358           s4o.print("].state) {\n");
   359           s4o.indent_right();
   359           s4o.indent_right();
   360           
   360           
   361           // generate action code
   361           // generate action code
   362           symbol->function_block_body->accept(*generate_c_code);
   362           symbol->function_block_body->accept(*generate_c_code);
   363           
   363