summaryrefslogtreecommitdiff
path: root/source/libs/asura-lib-utils/scripting/portable.hpp
blob: 097a9febb3937cf7c10fa30d9064fa0c97c6ff27 (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
#ifndef __ASURA_ENGINE_PORTABLE_H__
#define __ASURA_ENGINE_PORTABLE_H__

#include "../type.h"

extern "C" 
{
	#include <Lua51/lua.h>
	#include <Lua51/lauxlib.h>
}
#include <Luax/luax.h>

namespace AsuraEngine
{
	namespace Scripting
	{

		///
		/// ҪעluanativeҪ̳дģ塣
		///
		template<typename T> 
		using Portable = Luax::LuaxNativeClass<T>;

		///
		/// ҪΪ࣬userdatamember ref̳д࣬ע̳С
		///
		using NativeAccessor = Luax::ILuaxNativeAccessor;

	}
}

namespace AEScripting = AsuraEngine::Scripting;

#endif