"CShort" (Compiled Type)
"CShort" (Compiled Type)
"CShort"
represents the C short type.
Details
- "CShort" is a macro that is replaced with a platform-specific concrete type. On most platforms, "CShort" is a macro for "Integer16".
Examples
Basic Examples (2)
Compile a function that takes a "CShort" as input:
cf = FunctionCompile[Function[Typed[arg, "CShort"], arg]]cf[100]Create a constant with type "CShort":
cf = FunctionCompile[Function[{}, Typed[12, "CShort"]]]cf[]See Also
Compiled Types: Integer16 CUnsignedShort CInt
Tech Notes
Related Guides
History
Introduced in 2022 (13.1)