⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 luastate.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//--------------------------------------------------------------------------------// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -