// text type : String // return type : Code Xsrc(text)
Xtalのソースを簡単に記述するためのマクロです。値の型はCodePtrとなります。
void exec_xtal(){ AnyPtr src(Xsrc(( return [0, 2, 3, 4]; ))); const ArrayPtr array(ptr_cast<Array>(src->call())); Xfor(it, array){ it->p(); } }
0 2 3 4