lua-users home
lua-l archive

Re: lua_setallocf question

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


 lua_State* state = luaL_newstate();
 lua_setallocf(state, &CustomAllocator::lua_Alloc, &alloc);
 lua_close(state);
luaL_newstate is from the aux library, use lua_newstate() instead.
- Alex

AltStyle によって変換されたページ (->オリジナル) /