luastate.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 55 行
H
55 行
//--------------------------------------------------------------------------------// by sigi. 2002.12.12//--------------------------------------------------------------------------------#ifndef __LUA_STATE_H__#define __LUA_STATE_H__#include "Types.h"#include "Exception.h"extern "C" { #include "lua.h" #include "lualib.h"}class LuaState {public : static const int defaultStateSize = 100;public : LuaState(); virtual ~LuaState(); // LuaState俊 措秦辑 弥檬 茄锅父 init秦林搁 等促. virtual void init(int stackSize=defaultStateSize); virtual void release(); lua_State* getState() const { return m_pState; } int dofile(const string& filename) throw (Error); static bool isError(int result) { return result!=0; } static const string& getErrorToString(int result); static void logError(int result); void randomseed();protected : void open(int stackSize=defaultStateSize); void baselibopen(); void mathlibopen(); void strlibopen(); void iolibopen(); void close();protected : lua_State* m_pState;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?