Introducing SM_ASM_X86, a compiler-agnostic inline assembly macro

This commit is contained in:
Ben "root" Anderson
2013-10-25 18:05:56 -05:00
parent 469260911a
commit 3a730b3c3c
4 changed files with 25 additions and 21 deletions
+1 -5
View File
@@ -42,11 +42,7 @@ void NORETURN sm_crash( const char *reason )
#if defined(_WINDOWS)
/* Do something after the above, so the call/return isn't optimized to a jmp; that
* way, this function will appear in backtrace stack traces. */
#if defined(_MSC_VER)
_asm nop;
#elif defined(__GNUC__) // MinGW or similar
asm("nop");
#endif
SM_ASM_X86(nop)
#else
_exit( 1 );
#endif