summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-03 23:05:03 +0200
committermadmaxoft <github@xoft.cz>2014-09-03 23:05:03 +0200
commit06c66a08cdbfbbac56d79a175bcc6142d690cc94 (patch)
tree7580c375ee3c431811823ec0a2b834d86c4b8c05 /src/Bindings/LuaState.h
parentDebuggers: Added a test code for ForEachEntityInBox(). (diff)
downloadcuberite-06c66a08cdbfbbac56d79a175bcc6142d690cc94.tar
cuberite-06c66a08cdbfbbac56d79a175bcc6142d690cc94.tar.gz
cuberite-06c66a08cdbfbbac56d79a175bcc6142d690cc94.tar.bz2
cuberite-06c66a08cdbfbbac56d79a175bcc6142d690cc94.tar.lz
cuberite-06c66a08cdbfbbac56d79a175bcc6142d690cc94.tar.xz
cuberite-06c66a08cdbfbbac56d79a175bcc6142d690cc94.tar.zst
cuberite-06c66a08cdbfbbac56d79a175bcc6142d690cc94.zip
Diffstat (limited to 'src/Bindings/LuaState.h')
-rw-r--r--src/Bindings/LuaState.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h
index fd506b10e..44f187701 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -338,6 +338,14 @@ protected:
*/
bool PushFunction(int a_FnRef);
+ /** Pushes a function that has been saved as a reference.
+ Returns true if successful. Logs a warning on failure
+ */
+ bool PushFunction(const cRef & a_FnRef)
+ {
+ return PushFunction((int)a_FnRef);
+ }
+
/** Pushes a function that is stored in a referenced table by name
Returns true if successful. Logs a warning on failure
*/