|
|
@@ -31,22 +31,15 @@ namespace crown
|
|
|
/// Wrapper to manipulate Lua stack.
|
|
|
///
|
|
|
/// @ingroup Lua
|
|
|
-class LuaStack
|
|
|
+struct LuaStack
|
|
|
{
|
|
|
lua_State* L;
|
|
|
|
|
|
-public:
|
|
|
-
|
|
|
LuaStack(lua_State* L)
|
|
|
: L(L)
|
|
|
{
|
|
|
}
|
|
|
|
|
|
- lua_State* state()
|
|
|
- {
|
|
|
- return L;
|
|
|
- }
|
|
|
-
|
|
|
/// Returns the number of elements in the stack.
|
|
|
/// When called inside a function, it can be used to count
|
|
|
/// the number of arguments passed to the function itself.
|