summaryrefslogtreecommitdiff
path: root/Source/3rdParty/Luax/luax_class.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-14 09:08:07 +0800
committerchai <chaifix@163.com>2019-03-14 09:08:07 +0800
commit8d8c4ff1664625e7428d0d31cd798d9321680cb2 (patch)
tree67af1dad8483ba1c886ae1bd00b9c664ee245385 /Source/3rdParty/Luax/luax_class.cpp
parent6016ece202eef94ed76bd20d4f7879ccc71cc2e6 (diff)
*luax
Diffstat (limited to 'Source/3rdParty/Luax/luax_class.cpp')
-rw-r--r--Source/3rdParty/Luax/luax_class.cpp68
1 files changed, 1 insertions, 67 deletions
diff --git a/Source/3rdParty/Luax/luax_class.cpp b/Source/3rdParty/Luax/luax_class.cpp
index 52cf6b7..3cb1f8a 100644
--- a/Source/3rdParty/Luax/luax_class.cpp
+++ b/Source/3rdParty/Luax/luax_class.cpp
@@ -1,72 +1,6 @@
-#include "luax_state.h"
-#include "luax_class.h"
-#include "luax_runtime.h"
+
namespace Luax
{
- LuaxClass::LuaxClass()
- : mRC(1) // ʱĬһ
- , mSafer(false)
- {
- }
-
- LuaxClass::~LuaxClass()
- {
- assert(mSafer);
- }
-
- void LuaxClass::Retain()
- {
- ++mRC;
- }
-
- void LuaxClass::Release()
- {
- if (--mRC <= 0)
- {
- mSafer = true; // safer
- delete this;
- }
- }
-
- bool LuaxClass::PushLuaUserdata(LuaxState& state)
- {
- return true;
- }
-
- void LuaxClass::BindFactoryToLua(LuaxState& state)
- {
- //assert(!mUserdata);
-
- //
- state.PushPtrUserData(this);
-
- lua_newtable(state); // ref table
- lua_newtable(state); // member table
-
- }
-
- void LuaxClass::BindSingletonToLua(LuaxState& state)
- {
-
- }
-
- //--------------------------------------------------------------------------------------------------------------
-
- ///
- /// ͷŹʵ
- ///
- int LuaxClass::l_GC(lua_State* L)
- {
- LUAX_SETUP(L, "U");
-
- return 0;
- }
-
- int LuaxClass::l_ToString(lua_State* L)
- {
- return 0;
- }
-
} \ No newline at end of file