Jump to content

luaL_setgcthreshold(L,0)


Recommended Posts

Solved :D

 

Now lua work like a charm.  Just replace 

lua_setgcthreshold

with 

int lua_gc (lua_State *L, int what, int data);

But be carefuly this take 3 arguments.

Documentation: http://www.lua.org/manual/5.3/manual.html#lua_gc

Lua 5.1 Garbage Colector is good enough on its default settings. Only embedded systems may require Garbage Colector  tuning.

 

This is the original lua from kraizy.tgz  definiton of Garbage Colector.

/*
** garbage-collection functions
*/
LUA_API int   lua_getgcthreshold (lua_State *L);
LUA_API int   lua_getgccount (lua_State *L);
LUA_API void  lua_setgcthreshold (lua_State *L, int newthreshold);

2 arguments.

Edited by ds_aim
  • Metin2 Dev 1
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.