summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-19 23:45:26 +0100
committermadmaxoft <github@xoft.cz>2014-01-19 23:45:26 +0100
commit4a01879911c5673612693531c4f8970c1644947b (patch)
tree38c8ba5c9571accc9f172843da2db741e78ae6a4 /src/Bindings/LuaState.h
parentMerge pull request #569 from worktycho/EnchantmentsFix (diff)
downloadcuberite-4a01879911c5673612693531c4f8970c1644947b.tar
cuberite-4a01879911c5673612693531c4f8970c1644947b.tar.gz
cuberite-4a01879911c5673612693531c4f8970c1644947b.tar.bz2
cuberite-4a01879911c5673612693531c4f8970c1644947b.tar.lz
cuberite-4a01879911c5673612693531c4f8970c1644947b.tar.xz
cuberite-4a01879911c5673612693531c4f8970c1644947b.tar.zst
cuberite-4a01879911c5673612693531c4f8970c1644947b.zip
Diffstat (limited to '')
-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 414e5e4b2..f8b67f5cd 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -815,6 +815,9 @@ public:
/// Returns true if the specified parameters on the stack are strings; also logs warning if not
bool CheckParamString(int a_StartParam, int a_EndParam = -1);
+ /// 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 parameter on the stack is nil (indicating an end-of-parameters)
bool CheckParamEnd(int a_Param);