"CInt" (コンパイルタイプ)
"CInt" (コンパイルタイプ)
"CInt"
C言語のint型を表す.
詳細
- "CInt"はプラットフォーム特有の具象型で置き換えられるマクロである.ほとんどのプラットフォームでは,"CInt"は"Integer32"のマクロである.
例題
例 (3)
cf = FunctionCompile[Function[Typed[arg, "CInt"], arg]]cf[100]intでC標準ライブラリ関数absを呼び出すプログラムをコンパイルする:
cf = FunctionCompile[Function[Typed[arg, "CInt"], LibraryFunction["abs"][arg]]]cf[-10]cf = FunctionCompile[Function[{}, Typed[12, "CInt"]]]cf[]関連項目
コンパイルタイプ: Integer32 CUnsignedInt CLong CFloat
テクニカルノート
履歴
2022 で導入 (13.1)