40 #ifndef _lua51scriptargument_cpp
41 #define _lua51scriptargument_cpp
73 { lua_pushinteger(TargetState, this->
Datum); }
76 int Top = lua_gettop(TargetState);
77 if(LUA_TNUMBER==lua_type(TargetState,Top))
79 Datum = lua_tointeger(TargetState,Top);
80 lua_pop(TargetState,1);
87 { lua_pushnumber(TargetState, this->
Datum); }
90 int Top = lua_gettop(TargetState);
91 if(LUA_TNUMBER==lua_type(TargetState,Top))
93 Datum = lua_tonumber(TargetState,Top);
94 lua_pop(TargetState,1);
101 { lua_pushnumber(TargetState, this->
Datum); }
104 int Top = lua_gettop(TargetState);
105 if(LUA_TNUMBER==lua_type(TargetState,Top))
107 Datum = lua_tointeger(TargetState,Top);
108 lua_pop(TargetState,1);
115 { lua_pushlstring(TargetState, this->
Datum.c_str(), this->
Datum.size() ); }
118 int Top = lua_gettop(TargetState);
119 if(LUA_TSTRING==lua_type(TargetState,Top))
121 Datum = lua_tostring(TargetState,Top);
122 lua_pop(TargetState,1);
129 { lua_pushboolean(TargetState, this->
Datum); }
132 int Top = lua_gettop(TargetState);
133 if(LUA_TBOOLEAN==lua_type(TargetState,Top))
135 Datum = lua_toboolean(TargetState,Top);
136 lua_pop(TargetState,1);
143 { lua_pushnil(TargetState); }
146 int Top = lua_gettop(TargetState);
147 if(LUA_TNIL==lua_type(TargetState,Top))
148 { lua_pop(TargetState,1); }
Integer Datum
The Integer actual data.
#define MEZZ_EXCEPTION(num, desc)
An easy way to throw exceptions with rich information.
All the definitions for datatypes as well as some basic conversion functions are defined here...
Boole Datum
The Bool actual data.
virtual void Push(lua_State *TargetState) const
Handle the details of putting this data onto Lua's Stack.
virtual void Push(lua_State *TargetState) const
Handle the details of putting this data onto Lua's Stack.
This implements the exception hiearchy for Mezzanine.
virtual void Pop(lua_State *TargetState)
Handle the details of pulling data from Lua's Stack into this.
This file has the interface for the Lua scripts.
virtual void Push(lua_State *TargetState) const
Handle the details of putting this data onto Lua's Stack.
This file has the definition of the Script Arguments for Lua 51.
Real Datum
The Real actual data.
Whole Datum
The Whole actual data.
virtual void Pop(lua_State *TargetState)
Handle the details of pulling data from Lua's Stack into this.
virtual void Push(lua_State *TargetState) const
Handle the details of putting this data onto Lua's Stack.
Thrown when parameters are checked at runtime and found invalid.
virtual void Push(lua_State *TargetState) const
Handle the details of putting this data onto Lua's Stack.
virtual void Pop(lua_State *TargetState)
Handle the details of pulling data from Lua's Stack into this.
String Datum
The String data.
virtual void Push(lua_State *TargetState) const
Handle the details of putting this data onto Lua's Stack.
virtual void Pop(lua_State *TargetState)
Handle the details of pulling data from Lua's Stack into this.
virtual void Pop(lua_State *TargetState)
Handle the details of pulling data from Lua's Stack into this.
The bulk of the engine components go in this namspace.
This file has the interface for the Lua based implementation of the Scripting system.
virtual void Pop(lua_State *TargetState)
Handle the details of pulling data from Lua's Stack into this.