luastackrestore.h
来自「这个是symbian下的一个蛮庞大的3D游戏源代码!对于学习3D开发的人有很大的」· C头文件 代码 · 共 48 行
H
48 行
#ifndef _LUA_LUASTACKRESTORE_H
#define _LUA_LUASTACKRESTORE_H
struct lua_State;
namespace lua
{
class LuaState;
/**
* Helper class for storing and restoring Lua stack stack top position.
* Stores the top at the construction and restores it at the end of scope.
*
* @ingroup lua
*/
class LuaStackRestore
{
public:
/** Saves Lua stack top position. */
LuaStackRestore( LuaState* luastate );
/** Saves Lua stack top position. */
LuaStackRestore( lua_State* impl );
/** Restores Lua stack top position. */
~LuaStackRestore();
private:
lua_State* m_impl;
int m_top;
LuaStackRestore( const LuaStackRestore& );
LuaStackRestore& operator=( const LuaStackRestore& );
};
} // lua
#endif // _LUA_LUASTACKRESTORE_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?