How to catch exceptions from assembler inserts?
For example, for such a code
#include <iostream> void foo() { _asm { xor ebx, ebx div ebx } } int main() { foo(); } I try to process it like this
#include <iostream> void foo() { try{ _asm { xor ebx, ebx div ebx } } catch (...){ std::cout << "exception"; } } int main() { foo(); } , but the exception still falls.
Compiler: VC++ 2015
OS: windows