summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-11 15:03:35 +0100
committermadmaxoft <github@xoft.cz>2014-02-11 15:03:35 +0100
commit33c84aaa4d9d5d5255439948d318a1894db4cba4 (patch)
tree4b4adf24b502b27000fb62d5a2906b2c4cd53812 /src/Bindings/LuaState.h
parentMore gcc warnings fixed. (diff)
downloadcuberite-33c84aaa4d9d5d5255439948d318a1894db4cba4.tar
cuberite-33c84aaa4d9d5d5255439948d318a1894db4cba4.tar.gz
cuberite-33c84aaa4d9d5d5255439948d318a1894db4cba4.tar.bz2
cuberite-33c84aaa4d9d5d5255439948d318a1894db4cba4.tar.lz
cuberite-33c84aaa4d9d5d5255439948d318a1894db4cba4.tar.xz
cuberite-33c84aaa4d9d5d5255439948d318a1894db4cba4.tar.zst
cuberite-33c84aaa4d9d5d5255439948d318a1894db4cba4.zip
Diffstat (limited to 'src/Bindings/LuaState.h')
-rw-r--r--src/Bindings/LuaState.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h
index 1c9c99e69..b9bf10142 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -833,6 +833,9 @@ public:
/** Returns true if the specified parameters on the stack are functions; also logs warning if not */
bool CheckParamFunction(int a_StartParam, int a_EndParam = -1);
+ /** Returns true if the specified parameters on the stack are functions or nils; also logs warning if not */
+ bool CheckParamFunctionOrNil(int a_StartParam, int a_EndParam = -1);
+
/** Returns true if the specified parameter on the stack is nil (indicating an end-of-parameters) */
bool CheckParamEnd(int a_Param);