sysGeneratingStub system variable (SDL script)
This system variable applies only to the SDL scripts for C and C++.
The sysGeneratingStub system variable (a global numeric) returns either '1' or '0':
If the Class that is passed to the Generate.sdl generation template was added to the Classes to Stub list on the Launch ACS/TDK dialog, '1' is returned.
If the Class that is passed to the Generate.sdl generation template was not added to the Classes to Stub list on the Launch ACS/TDK dialog, '0' is returned.
This system variable is useful for determining whether to generate stub operations for a Class.
In this example, the StubCode.sdl generation template is loaded only if the Class was added to the Classes to Stub list on the Launch ACS/TDK dialog.
%if %getvar "sysGeneratingStub" == 1 %then
%load "StubCode.sdl"
%else
%operation_body%
%endif