summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-09-27 00:10:50 +0200
committerMattes D <github@xoft.cz>2015-09-27 00:10:50 +0200
commit0e3bb7a3982df1f94d9946b091996841eaa90286 (patch)
tree0cbe86c533f1d5caea5fa00b32a2a395590dbf59 /src/Bindings/LuaState.cpp
parentMerge pull request #2496 from SafwatHalaby/compileCommitId (diff)
parentExtended and fixed the cFile API. (diff)
downloadcuberite-0e3bb7a3982df1f94d9946b091996841eaa90286.tar
cuberite-0e3bb7a3982df1f94d9946b091996841eaa90286.tar.gz
cuberite-0e3bb7a3982df1f94d9946b091996841eaa90286.tar.bz2
cuberite-0e3bb7a3982df1f94d9946b091996841eaa90286.tar.lz
cuberite-0e3bb7a3982df1f94d9946b091996841eaa90286.tar.xz
cuberite-0e3bb7a3982df1f94d9946b091996841eaa90286.tar.zst
cuberite-0e3bb7a3982df1f94d9946b091996841eaa90286.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/LuaState.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index 4c0dfa676..c9e7815ca 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -676,6 +676,18 @@ void cLuaState::Push(int a_Value)
+void cLuaState::Push(long a_Value)
+{
+ ASSERT(IsValid());
+
+ tolua_pushnumber(m_LuaState, static_cast<lua_Number>(a_Value));
+ m_NumCurrentFunctionArgs += 1;
+}
+
+
+
+
+
void cLuaState::Push(UInt32 a_Value)
{
ASSERT(IsValid());