[[
Xemb
]]
Xtal Unofficial Wiki
現在位置:
Xtal Unofficial Wiki
»
Xtal Reference
»
Xemb
文書の表示
以前のリビジョン
最近の変更
サイトマップ
ログイン
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== Xemb ====== <code cpp> // text type : Program Code // compiled_text type : Program Byte Code // return type : Code #ifdef XTAL_USE_COMPILED_EMB Xemb(text, compiled_text) exec_compiled_source(compiled_text); #else // XTAL_USE_COMPILED_EMB Xemb(text, compiled_text) exec_source(text); #endif </code> 埋め込みバイトコードとソースコードをコンパイル時に選択することが出来る。バイトコードを埋め込む場合はXTAL_USE_COMPILED_EMBをdefineし、そうでなければdefineしない。 ===== Example ===== 以下のコードは、バイトコードが正確なものではないので、コンパイルはできますが実行できません。 ==== C++ ==== <code cpp> void exec_xtal(){ const CodePtr& code(Xemb(( return [0, 2, 3, 4]; ), "\xdf\x78\x74\x61..." )); } </code>
reference/xemb.txt · 最終更新: 2011/09/03 21:30 by sukai
文書の表示
以前のリビジョン
文書の先頭へ