stage4/generate_c/generate_c_inlinefcall.cc
changeset 1022 0d4d3a502d82
parent 1018 49c4edf76e63
child 1024 df3e2792fd58
--- a/stage4/generate_c/generate_c_inlinefcall.cc	Fri May 06 11:48:02 2016 +0300
+++ b/stage4/generate_c/generate_c_inlinefcall.cc	Thu Sep 08 17:44:44 2016 +0100
@@ -280,6 +280,15 @@
       return NULL;
     }
 
+    /********************/
+    /* 2.1.6 - Pragmas  */
+    /********************/
+    //SYM_REF0(disable_code_generation_pragma_c)
+    //SYM_REF0(enable_code_generation_pragma_c)
+    //SYM_TOKEN(pragma_c)
+    void *visit(pragma_c *symbol) {return NULL;}
+
+
     /*************************/
     /* B.1 - Common elements */
     /*************************/
@@ -764,7 +773,8 @@
       symbol_c *parameter_assignment_list = NULL;
       if (NULL != symbol->   formal_param_list) parameter_assignment_list = symbol->   formal_param_list;
       if (NULL != symbol->nonformal_param_list) parameter_assignment_list = symbol->nonformal_param_list;
-      if (NULL == parameter_assignment_list) ERROR;
+      // NOTE-> We support the non-standard feature of POUS with no in, out and inout parameters, so this is no longer an internal error!
+      // if (NULL == parameter_assignment_list) ERROR; 
 
       function_call_param_iterator_c function_call_param_iterator(symbol);