summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-12-16 15:04:47 +0100
committerMattes D <github@xoft.cz>2015-12-18 12:40:34 +0100
commit086c8b1834bfca6a4af912abbd13fd570f7b0b33 (patch)
tree7e95f9e8102c3cc7910c7a513e4cc77bce764aed /src/Bindings/LuaState.h
parentMerge pull request #2770 from cuberite/RemoveChunkDataCollector (diff)
downloadcuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.tar
cuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.tar.gz
cuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.tar.bz2
cuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.tar.lz
cuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.tar.xz
cuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.tar.zst
cuberite-086c8b1834bfca6a4af912abbd13fd570f7b0b33.zip
Diffstat (limited to 'src/Bindings/LuaState.h')
-rw-r--r--src/Bindings/LuaState.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h
index 6b600e150..f66605332 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -259,7 +259,6 @@ public:
void Push(int a_Value);
void Push(long a_Value);
void Push(const UInt32 a_Value);
- void Push(void * a_Ptr);
void Push(std::chrono::milliseconds a_time);
// GetStackValue() retrieves the value at a_StackPos, if it is a valid type. If not, a_Value is unchanged.
@@ -375,6 +374,9 @@ public:
/** Returns true if the specified parameters on the stack are numbers; also logs warning if not */
bool CheckParamNumber(int a_StartParam, int a_EndParam = -1);
+ /** Returns true if the specified parameters on the stack are bools; also logs warning if not */
+ bool CheckParamBool(int a_StartParam, int a_EndParam = -1);
+
/** 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);