diff --git a/test/simulink_codegen_tests/confsettingsmodformmi.txt b/test/simulink_codegen_tests/confsettingsmodformmi.txt new file mode 100644 index 0000000000000000000000000000000000000000..557e0749bf44ecedd8d72e785db48cec3a6104bf --- /dev/null +++ b/test/simulink_codegen_tests/confsettingsmodformmi.txt @@ -0,0 +1,15 @@ +In header file: + +#ifndef SCDMACROS +#define SCDMACROS +#define UTSTRUCTNAME(NAME) RT_MODEL_##NAME##_T +#define TSTRUCTNAME(NAME) UTSTRUCTNAME(NAME) +#define UGETMMIFCN(NAME) NAME##_GetCAPImmi +#define GETMMIFCN(NAME) UGETMMIFCN(NAME) +#endif + +In source file: +rtwCAPI_ModelMappingInfo* GETMMIFCN(MODEL) ( TSTRUCTNAME(MODEL) *rtm ) +{ + return &(rtmGetDataMapInfo(rtm).mmi); +} diff --git a/test/simulink_codegen_tests/export_shrlib_def_scd.tlc b/test/simulink_codegen_tests/export_shrlib_def_scd.tlc index bc8aa6273aa335e40dc87a702abc3f88c6dc7d1a..4111b8a80c633231d8be7bf53faa7ee3651ac627 100644 --- a/test/simulink_codegen_tests/export_shrlib_def_scd.tlc +++ b/test/simulink_codegen_tests/export_shrlib_def_scd.tlc @@ -196,6 +196,8 @@ global: %<leadingUs>%<Name>_GetCAPIStaticMap%<trailingSc> %endif %if FEVAL("isunix")==TLC_TRUE && FEVAL("ismac")==TLC_FALSE +%<Name>; +%<Name>_GetCAPImmi; mydef; local: *;