please include function ai_markMemoryDirty. static bool ai_isMemoryDirty() { ret ai_markMemoryDirty_mark; }