GC_UNLOAD build time define and replaced with flag to change it at runtime.
This commit is contained in:
11
src/core.c
11
src/core.c
@@ -1253,6 +1253,17 @@ int lcoreIsGCUnloadEnabled( lua_State *L ) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
> RL.SetGCUnload( bool enabled )
|
||||
|
||||
Set Lua garbage collection to unload object data
|
||||
*/
|
||||
int lcoreSetGCUnload( lua_State *L ) {
|
||||
state->gcUnload = uluaGetBoolean( L, 1 );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
## Core - Files management functions
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user