2025-04-19: 追記: #ifndef 等を(偽) math.h で使う方法 (#include guard) は他に悪影響を与えることが判明、削除しました。
例えば、VEX 用の foo.h というファイルを作り、この中に
float thrice (float a) {return a * 3;} /* 入力の3倍を返す */という関数を作ったとする。この関数を Attribute Wrangle で使うには
- foo.h を ~/houdini20.5/vex/include/ に格納し、
- Attribute Wrangle では、
#include "foo.h" @val = thrice (100.0);
などとするが、