Implement helpful __tostring for all userdata-based classes
This commit is contained in:
committed by
Lars Müller
parent
9ad23e4384
commit
747857bffa
@@ -77,7 +77,7 @@ void ModChannelRef::Register(lua_State *L)
|
||||
{"__gc", gc_object},
|
||||
{0, 0}
|
||||
};
|
||||
registerClass(L, className, methods, metamethods);
|
||||
registerClass<ModChannelRef>(L, methods, metamethods);
|
||||
}
|
||||
|
||||
void ModChannelRef::create(lua_State *L, const std::string &channel)
|
||||
|
||||
Reference in New Issue
Block a user