diff options
author | Mattes D <github@xoft.cz> | 2015-09-26 22:54:18 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-09-26 22:54:18 +0200 |
commit | ad57ce5f9940ab2776d9a3ad6dafe86b07d23058 (patch) | |
tree | 0cbe86c533f1d5caea5fa00b32a2a395590dbf59 /src/Bindings/LuaState.cpp | |
parent | Merge pull request #2496 from SafwatHalaby/compileCommitId (diff) | |
download | cuberite-ad57ce5f9940ab2776d9a3ad6dafe86b07d23058.tar cuberite-ad57ce5f9940ab2776d9a3ad6dafe86b07d23058.tar.gz cuberite-ad57ce5f9940ab2776d9a3ad6dafe86b07d23058.tar.bz2 cuberite-ad57ce5f9940ab2776d9a3ad6dafe86b07d23058.tar.lz cuberite-ad57ce5f9940ab2776d9a3ad6dafe86b07d23058.tar.xz cuberite-ad57ce5f9940ab2776d9a3ad6dafe86b07d23058.tar.zst cuberite-ad57ce5f9940ab2776d9a3ad6dafe86b07d23058.zip |
Diffstat (limited to 'src/Bindings/LuaState.cpp')
-rw-r--r-- | src/Bindings/LuaState.cpp | 12 |
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()); |