Call a foreign-language function: Difference between revisions

Content added Content deleted
No edit summary
Line 2,831: Line 2,831:
.if rax != LUA_OK
.if rax != LUA_OK
invoke printf, CSTR("---> Lua failed to open libs",10)
invoke printf, CSTR("---> Lua failed to open libs",10)
jmp _ext
.endif
.endif
mov rax, rbx

_ext:
assume rbx:nothing
mov rax, rbx
ret
assume rbx:nothing
ret
ENDMETHOD
ENDMETHOD