rtasm: assert stack is fully popped in return

This commit is contained in:
Keith Whitwell 2008-05-01 15:31:17 +01:00
parent 6980823da9
commit 727257f320

View file

@ -495,6 +495,7 @@ void x86_dec( struct x86_function *p,
void x86_ret( struct x86_function *p )
{
DUMP();
assert(p->stack_offset == 0);
emit_1ub(p, 0xc3);
}