blob: 1f80fdab8d5258da9fc3c92d542e2bed9a7a5121 (
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_STATE_H__
#define __LUAX_STATE_H__
namespace Luax
{
class LuaxState
{
public:
LuaxState(lua_State* state);
~LuaxState();
operator lua_State*();
operator bool();
inline lua_State* operator ->() { return mState; };
inline lua_State& operator *() { return *mState; };
private:
void* operator new(size_t size);
lua_State* mState;
};
}
#endif
|