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