src/common/runtime.cpp
static int _wrap__gc(lua_State * L)
	{
		userdata * u = (userdata *)lua_touserdata(L, 1);
		Object * t = (Object *)u->data;
		t->release();
		return 0;
	}
/**
	* Called when an object is collected. The object is released
	* once in this function, possibly deleting it.
	**/
Called when an object is collected. The object is released
once in this function, possibly deleting it.
Called when an object is collected . The object is released once in this function possibly deleting it .
static int _wrap__gc(lua_State * L)
	{
		userdata * u = (userdata *)lua_touserdata(L, 1);
		Object * t = (Object *)u->data;
		t->release();
		return 0;
	}
static int _wrap__gc ( lua_State * L ) { userdata * u = ( userdata * ) lua_touserdata ( L , 1 ) ; Object * t = ( Object * ) u -> data ; t -> release ( ) ; return 0 ; }
Called when an object is collected.
Called when an object is collected .