RealEthanPlayzDev / LuauCeption

Running Luau inside Luau
MIT License
19 stars 5 forks source link

how do i wrap function into wasm memory #1

Closed jLn0n closed 2 months ago

jLn0n commented 7 months ago

i couldn't seem to figure out how to wrap function into wasm memory as it seems like there is no exposed function on wrapping function to the memory

RealEthanPlayzDev commented 7 months ago

What do you mean by "wrapping function into wasm memory"? Can you elaborate and tell what are you trying to achieve?

jLn0n commented 7 months ago

What do you mean by "wrapping function into wasm memory"? Can you elaborate and tell what are you trying to achieve?

i want to add a function into the luastate as a new global function, my problem is i dont know how to wrap the function into a wasm-compatible pointer thing

jLn0n commented 2 months ago

i figured this out in my mind, but no prototypes for now :(

jLn0n commented 2 months ago

i might have to add a new function to FUNC_LIST table then register the functions then blablabla