summaryrefslogtreecommitdiff
path: root/source/external/Luax/luax_memberref.h
blob: cda7946d6f0d16212e853349c5e75d937013eba1 (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
#ifndef __LUAX_MEMBER_REF_H__
#define __LUAX_MEMBER_REF_H__

#include "luax_config.h"

namespace Luax
{

	///
	/// ʵÀýµÄref table±£´æµÄmember ref¡£ÓÉluax class×ö¾ßÌåµÄ¹ÜÀí¡£ÊµÀýµÄref tableÊÇÇ¿ÒýÓã¬ÓÃÀ´¹ÜÀíÀïÃæmemberµÄÉúÃüÖÜÆÚ¡£
	/// ÓÃÀ´ÔÚluaºÍnativeÖ®¼ä½øÐÐÊý¾Ý¹µÍ¨¡£
	///
	class LuaxMemberRef
	{
	public:
		LuaxMemberRef();
		~LuaxMemberRef();

		inline operator bool() { return refID != LUA_NOREF; };

		int refID;

	};

}

#endif