Writing S-Functions | ![]() ![]() |
Get the size of a custom data type.
Syntax
Arguments
S
SimStruct representing an S-Function block.
Description
Returns the size of the data type specified by id
, if id
is valid and the data type's size has been set. Otherwise, this macro returns INVALID_DTYPE_SIZE
and reports an error.
Note
Because this macro reports any error that occurs when it is invoked, you do not need to use ssSetErrorStatus to report the error.
|
Languages
Example
The following example gets the size of the int16
data type.
See Also
ssSetDataTypeSize
![]() | ssGetDataTypeName | ssGetDataTypeZero | ![]() |