Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Represents a parameter that is optional - calling a GetStackValue() with this object will not fail if the value on the Lua stack is nil. More...
#include <LuaState.h>
Public Member Functions | |
cOptionalParam (T &a_Dest) | |
T & | GetDest (void) |
Protected Attributes | |
T & | m_Dest |
Represents a parameter that is optional - calling a GetStackValue() with this object will not fail if the value on the Lua stack is nil.
Note that the GetStackValue() will still fail if the param is present but of a different type. The class itself is just a marker so that the template magic will select the correct GetStackValue() overload.
Definition at line 426 of file LuaState.h.
|
inlineexplicit |
Definition at line 429 of file LuaState.h.
|
inline |
Definition at line 434 of file LuaState.h.
|
protected |
Definition at line 437 of file LuaState.h.