Implement helpful __tostring for all userdata-based classes
This commit is contained in:
committed by
Lars Müller
parent
9ad23e4384
commit
747857bffa
@@ -6,6 +6,7 @@
|
||||
|
||||
#include "lua_api/l_base.h"
|
||||
#include "irrlichttypes.h"
|
||||
#include <lua.h>
|
||||
|
||||
class ServerActiveObject;
|
||||
class LuaEntitySAO;
|
||||
@@ -48,6 +49,9 @@ class ObjectRef : public ModApiBase {
|
||||
|
||||
// Exported functions
|
||||
|
||||
// __tostring metamethod
|
||||
static int mt_tostring(lua_State *L);
|
||||
|
||||
// garbage collector
|
||||
static int gc_object(lua_State *L);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user