Assuming there is following C code:
struct Foo { int dummy; }
int tryToAllocateFoo(Foo ** dest);
...How to do following in LuaJIT?
Foo * pFoo = NULL;
tryToAllocateFoo(&pFoo);
Assuming there is following C code:
struct Foo { int dummy; }
int tryToAllocateFoo(Foo ** dest);
...How to do following in LuaJIT?
Foo * pFoo = NULL;
tryToAllocateFoo(&pFoo);