diff options
Diffstat (limited to 'src/luax_state.h')
-rw-r--r-- | src/luax_state.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/luax_state.h b/src/luax_state.h index e69de29..1f80fda 100644 --- a/src/luax_state.h +++ b/src/luax_state.h @@ -0,0 +1,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
\ No newline at end of file |