]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/commitdiff
Enclose macro body in parentheses eaton-0.3.1
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 14 Apr 2015 06:09:39 +0000 (08:09 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 14 Apr 2015 06:09:39 +0000 (08:09 +0200)
This is required by Misra and similar coding standards.

rpp/rpp/rpp_srmain.tlc

index 03db08765801c55eedb475cfa590c23d518d3518..824d8f84037c8a07a5992429f166e67af4e0c421 100644 (file)
@@ -59,7 +59,7 @@
     %openfile tmpBuf
 
     /* Definitions */
-    #define STEP_SIZE_MILLIS %<CompiledModel.FundamentalStepSize>*1000.0
+    #define STEP_SIZE_MILLIS (%<CompiledModel.FundamentalStepSize>*1000.0)
     #define CONTROL_PRIORITY 3
     #define WORKING_PRIORITY 2
     #define EXTMODE_PRIORITY 1