def test(): emit_add42() add42 = x86.freeze_code_buffer() print shoothead.call(add42, 8) # should print 50 (= 42+8)
def test(str): compile(str) f = x86.freeze_code_buffer() # dump_hex(f) print shoothead.call(f, 0)