Mercurial > mm7
annotate LuaVM.h @ 2264:47b87aea14ba
m
author | Ritor1 |
---|---|
date | Sat, 08 Mar 2014 22:23:20 +0600 |
parents | 62a27b2cfcc2 |
children |
rev | line source |
---|---|
2052 | 1 #pragma once |
2 | |
3 class LuaVM | |
4 { | |
5 public: | |
2054 | 6 inline LuaVM(): L(nullptr) {} |
7 | |
2052 | 8 void Initialize(); |
9 bool DoFile(const char *filename); | |
10 | |
11 protected: | |
12 struct lua_State *L; | |
13 | |
14 const char *GetScriptFileLocation(const char *script_name); | |
15 }; | |
16 extern LuaVM *lua; |