block_of_code: Support stack unwinding on Windows

This commit is contained in:
MerryMage 2016-12-11 15:38:00 +00:00 committed by Merry
parent 4962d92b79
commit 5bea2e1680
5 changed files with 246 additions and 0 deletions

View file

@ -23,6 +23,7 @@ BlockOfCode::BlockOfCode(UserCallbacks cb) : Xbyak::CodeGenerator(128 * 1024 * 1
GenRunCode();
GenReturnFromRunCode();
GenMemoryAccessors();
unwind_handler.Register(this);
user_code_begin = getCurr<CodePtr>();
}