summaryrefslogtreecommitdiff
path: root/2.3-1/macros/CCodeGeneration/C_GenerateFunName.sci
diff options
context:
space:
mode:
authorsiddhu89902016-05-27 11:50:04 +0530
committersiddhu89902016-05-27 11:50:04 +0530
commit49003250e69e4e500742614888e47db789bbe451 (patch)
tree44bdcb9f8a4989789bbab2e10cd43d114fb237b4 /2.3-1/macros/CCodeGeneration/C_GenerateFunName.sci
parent18587a5f0cf86d636ac23a5be567437cd822bbc2 (diff)
downloadScilab2C-49003250e69e4e500742614888e47db789bbe451.tar.gz
Scilab2C-49003250e69e4e500742614888e47db789bbe451.tar.bz2
Scilab2C-49003250e69e4e500742614888e47db789bbe451.zip
Support for basic ODE function added
Diffstat (limited to '2.3-1/macros/CCodeGeneration/C_GenerateFunName.sci')
-rw-r--r--2.3-1/macros/CCodeGeneration/C_GenerateFunName.sci5
1 files changed, 3 insertions, 2 deletions
diff --git a/2.3-1/macros/CCodeGeneration/C_GenerateFunName.sci b/2.3-1/macros/CCodeGeneration/C_GenerateFunName.sci
index 54c641f2..d87fb9c1 100644
--- a/2.3-1/macros/CCodeGeneration/C_GenerateFunName.sci
+++ b/2.3-1/macros/CCodeGeneration/C_GenerateFunName.sci
@@ -23,14 +23,14 @@ function CFunName = C_GenerateFunName(FunctionName,InArg,NInArg,OutArg,NOutArg)
// ------------------------------
SCI2CNInArgCheck(argn(2),5,5);
CFunName = '';
-if((IsAVRSupportFunction(FunctionName)) | (IsRPISupportFunction(FunctionName)))
+if((IsAVRSupportFunction(FunctionName)) | (IsRPISupportFunction(FunctionName)) | ...
+ (mtlb_strcmp(part(FunctionName,1:5),'odefn') == %T))
//If current function is an AVR or RPi function, then function name can be just
//plain function name without any input/output arguments types
CFunName = CFunName+FunctionName;
else
-
for tmpcnt = 1:NInArg
if (InArg(tmpcnt).Dimension == 1)
CFunName = CFunName+InArg(tmpcnt).Type+'2';
@@ -48,5 +48,6 @@ else
CFunName = CFunName+OutArg(tmpcnt).Type+SCI2Cstring(OutArg(tmpcnt).Dimension);
end
end
+
end
endfunction