diff options
author | siddhu8990 | 2016-12-20 13:29:53 +0530 |
---|---|---|
committer | siddhu8990 | 2016-12-20 13:29:53 +0530 |
commit | 28d16508c39756d1f143b44c33115530fd4a7653 (patch) | |
tree | 3cc2ae342605c573cbc57430122481b8853dd023 /2.3-1/macros/CCodeGeneration/C_InitHeader.sci | |
parent | cdd9bf519d594b87c07193d2770b81a07829a50c (diff) | |
download | Scilab2C-28d16508c39756d1f143b44c33115530fd4a7653.tar.gz Scilab2C-28d16508c39756d1f143b44c33115530fd4a7653.tar.bz2 Scilab2C-28d16508c39756d1f143b44c33115530fd4a7653.zip |
Selectively add opencv related files if image processing functions are used
Diffstat (limited to '2.3-1/macros/CCodeGeneration/C_InitHeader.sci')
-rw-r--r-- | 2.3-1/macros/CCodeGeneration/C_InitHeader.sci | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/2.3-1/macros/CCodeGeneration/C_InitHeader.sci b/2.3-1/macros/CCodeGeneration/C_InitHeader.sci index bc6f2520..97dcf0d6 100644 --- a/2.3-1/macros/CCodeGeneration/C_InitHeader.sci +++ b/2.3-1/macros/CCodeGeneration/C_InitHeader.sci @@ -1,4 +1,4 @@ -function C_InitHeader(C_Prototype,HeaderFileName,Sci2CLibMainHeaderFName,Target) +function C_InitHeader(C_Prototype,HeaderFileName,Sci2CLibMainHeaderFName,Target,OpenCVUsed) // function C_InitHeader(C_Prototype,HeaderFileName,Sci2CLibMainHeaderFName) // ----------------------------------------------------------------- // //NUT: add description here @@ -19,7 +19,7 @@ function C_InitHeader(C_Prototype,HeaderFileName,Sci2CLibMainHeaderFName,Target) // ------------------------------ // --- Check input arguments. --- // ------------------------------ -SCI2CNInArgCheck(argn(2),4,4); +SCI2CNInArgCheck(argn(2),5,5); // ----------------------- // --- Initialization. --- @@ -38,7 +38,7 @@ PrintStringInfo('** ------------------- ',HeaderFileName,'file','y'); PrintStringInfo('** ----- Target ------ ',HeaderFileName,'file','y'); PrintStringInfo('** ------------------- ',HeaderFileName,'file','y'); PrintStringInfo('*/',HeaderFileName,'file','y'); -PrintStringInfo('# define ' + Target + '1 1' ,HeaderFileName,'file','y'); +PrintStringInfo('#define ' + Target + '1 1' ,HeaderFileName,'file','y'); PrintStringInfo('/*',HeaderFileName,'file','y'); PrintStringInfo('** ----------------------- ',HeaderFileName,'file','y'); PrintStringInfo('** --- SCI2C Includes. --- ',HeaderFileName,'file','y'); @@ -52,9 +52,9 @@ PrintStringInfo('** --------------------------- ',HeaderFileName,'file','y'); PrintStringInfo('*/',HeaderFileName,'file','y'); PrintStringInfo(' ',HeaderFileName,'file','y'); PrintStringInfo(' ',HeaderFileName,'file','y'); -PrintStringInfo('#ifdef __cplusplus',HeaderFileName,'file','y'); -PrintStringInfo('extern ""C"" {',HeaderFileName,'file','y'); -PrintStringInfo('#endif',HeaderFileName,'file','y'); +//PrintStringInfo('#ifdef __cplusplus',HeaderFileName,'file','y'); +//PrintStringInfo('extern ""C"" {',HeaderFileName,'file','y'); +//PrintStringInfo('#endif',HeaderFileName,'file','y'); PrintStringInfo('/*',HeaderFileName,'file','y'); PrintStringInfo('** ------------------- ',HeaderFileName,'file','y'); PrintStringInfo('** --- Prototypes. --- ',HeaderFileName,'file','y'); |