summaryrefslogtreecommitdiff
path: root/source/3rd-party/Luax/luax_class.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-29 22:28:40 +0800
committerchai <chaifix@163.com>2019-03-29 22:28:40 +0800
commit157530b8b6e11efc5573d5a0db8987a440197aa1 (patch)
treef9df79c013885e13dc81e7046c9828037eb29e2e /source/3rd-party/Luax/luax_class.cpp
parente37b1dfd022bda4dfdcba243c0543c62c89db32f (diff)
*misc
Diffstat (limited to 'source/3rd-party/Luax/luax_class.cpp')
-rw-r--r--source/3rd-party/Luax/luax_class.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/3rd-party/Luax/luax_class.cpp b/source/3rd-party/Luax/luax_class.cpp
index 960fd47..bb1609d 100644
--- a/source/3rd-party/Luax/luax_class.cpp
+++ b/source/3rd-party/Luax/luax_class.cpp
@@ -46,13 +46,13 @@ namespace Luax
lua_setfield(L, -2, "__index");
lua_pushstring(L, type);
- lua_pushcclosure(L, l___tostring, 1);
+ lua_pushcclosure(L, _Tostring, 1);
lua_setfield(L, -2, "__tostring");
return 1;
}
- int LuaxPlainClass::l___tostring(lua_State* L)
+ int LuaxPlainClass::_Tostring(lua_State* L)
{
// upvalues:
// 1: class name
@@ -184,7 +184,7 @@ namespace Luax
lua_setfield(L, -2, "__index");
lua_pushstring(L, type);
- lua_pushcclosure(L, l___tostring, 1);
+ lua_pushcclosure(L, _Tostring, 1);
lua_setfield(L, -2, "__tostring");
// classmetatableΪbaseClass