summaryrefslogtreecommitdiff
path: root/source/3rd-party/Luax/luax_reftable.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-06-06 00:11:18 +0800
committerchai <chaifix@163.com>2019-06-06 00:11:18 +0800
commit88b882ed0b432c6aff2063213e2f793a36dd25f7 (patch)
tree5fe5d5334050e1a1146aa63e61e88aa2f5170727 /source/3rd-party/Luax/luax_reftable.h
parentf6c0498c9728a286c13980ed3b60763d02e1b3a0 (diff)
*misc
Diffstat (limited to 'source/3rd-party/Luax/luax_reftable.h')
-rw-r--r--source/3rd-party/Luax/luax_reftable.h67
1 files changed, 0 insertions, 67 deletions
diff --git a/source/3rd-party/Luax/luax_reftable.h b/source/3rd-party/Luax/luax_reftable.h
deleted file mode 100644
index 58e4b9c..0000000
--- a/source/3rd-party/Luax/luax_reftable.h
+++ /dev/null
@@ -1,67 +0,0 @@
-#ifndef __LUAX_REFTABLE_H__
-#define __LUAX_REFTABLE_H__
-
-#include "luax_config.h"
-
-namespace Luax
-{
-
- class LuaxState;
-
- ///
- /// ref table strong ref tableweak ref tabletableĴ
- ///
- class LuaxRefTable
- {
- public:
-
- enum
- {
- WEAK_KEY = 1,
- WEAK_VALUE = 1 << 1
- };
-
- LuaxRefTable();
- ~LuaxRefTable();
-
- inline operator bool() { return mState; };
-
- void Init(LuaxState& state, cc8* name, cc8* mode = nullptr);
-
- bool IsKeyWeak();
- bool IsValueWeak();
-
- ///
- /// stack[idx]ʵڴref tableһãrefID
- ///
- int Ref(LuaxState& state, int idx);
- void Unref(LuaxState& state, int refID);
-
- ///
- /// ref table ջ
- ///
- void PushRefTable(LuaxState& state);
-
- ///
- /// reftable[refID] ջ
- ///
- void PushRef(LuaxState& state, int refID);
-
- ///
- /// ref tableLUA_REGISTRYINDEX[mName]
- ///
- void Clear(LuaxState& state);
-
- private:
-
- friend class LuaxState;
-
- lua_State* mState; // һЩȷϹ
- cc8* mName; // ref table
- int mMode; // ref table
-
- };
-
-}
-
-#endif \ No newline at end of file