I'm trying to achieve the following:
but don't really know if it's possible, the point is to get a function pointer for use with an external dll but the function calls a Lua function so Lua can be used instead of ASM.
Code:
Callback = function(arg1,arg2,arg3,arg4) return 0 end --[[ -- ASM -- Function that a pointer can be obtained that will call Lua 'Callback' function. -- Receives 4 args and passes them to Lua function. -- Returns what 'Callback' returns. ]]
Comment