diff options
author | siddhu8990 | 2016-07-25 15:59:40 +0530 |
---|---|---|
committer | siddhu8990 | 2016-07-25 15:59:40 +0530 |
commit | 24fbba33153e7758df4a990cb4c21ae8e53e6f3e (patch) | |
tree | b12075cf236142e6e0b9c024a37a2fc4ee5e6761 /macros/ASTManagement/AST_HandleHeader.sci | |
parent | 169db0082ebd07baea82d00213db6ffd4dee7cf6 (diff) | |
download | Scilab2C_fossee_old-24fbba33153e7758df4a990cb4c21ae8e53e6f3e.tar.gz Scilab2C_fossee_old-24fbba33153e7758df4a990cb4c21ae8e53e6f3e.tar.bz2 Scilab2C_fossee_old-24fbba33153e7758df4a990cb4c21ae8e53e6f3e.zip |
WiringPi used for RaspberryPi (Gpio, serial, Threads, ISRs)
Diffstat (limited to 'macros/ASTManagement/AST_HandleHeader.sci')
-rw-r--r-- | macros/ASTManagement/AST_HandleHeader.sci | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/macros/ASTManagement/AST_HandleHeader.sci b/macros/ASTManagement/AST_HandleHeader.sci index 41dcd06..98875a3 100644 --- a/macros/ASTManagement/AST_HandleHeader.sci +++ b/macros/ASTManagement/AST_HandleHeader.sci @@ -120,8 +120,13 @@ end // --- Check coherence between In/Out names and In/Out Arg structure loaded. --- // ----------------------------------------------------------------------------- //#RNU_RES_E -if (length(SharedInfo.CurrentFunInfo.InArg(1).Name) > 0) - NInArgDat = size(SharedInfo.CurrentFunInfo.InArg,1); +if (~isempty(SharedInfo.CurrentFunInfo.InArg)) + + if (length(SharedInfo.CurrentFunInfo.InArg(1).Name) > 0) + NInArgDat = size(SharedInfo.CurrentFunInfo.InArg,1); + else + NInArgDat = 0; + end else NInArgDat = 0; end |