summaryrefslogtreecommitdiff
path: root/include/luaglue/LuaVM.hpp
blob: f25cc3ed970cb4201d1f10f8d356501a07c01b5c (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
#ifndef __LUA_VM_H
#define __LUA_VM_H

#include "lua.hpp"

#include <string>

class LuaVM
{
	public:
		LuaVM( );
		~LuaVM( );
		
		void loadSource( const char *sourceFilename );
		void executeMain( );
		void dumpState( );

		lua_State *handle( );
		
	private:
		void initialize( );
		
	private:
		lua_State *m_lua;
		std::string m_sourceFilename;
};

#endif