summaryrefslogtreecommitdiff
path: root/Source/3rdParty/Luax/luax_ref.h
blob: 759a31411e73bc7b5fe72b8cb580feb095ae2953 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef __LUAX_REF_H__
#define __LUAX_REF_H__

namespace Luax
{

	///
	/// ãLUA_REGISTRYINDEX
	///
	class LuaxRef
	{
	public:

		enum
		{
			STRONG, 
			WEAK
		};

	private:

		int mRefID; // = luaL_ref

	};

	///
	/// ǿãLUA_REGISTRYINDEX["LUAX_STRONGREF_TABLE"]
	///
	class LuaxStrongRef: public LuaxRef
	{

	};

	///
	/// ãLUA_REGISTRYINDEX["LUAX_WEAKREF_TABLE"]
	///
	class LuaxWeakRef : public LuaxRef
	{

	};

}

#endif