summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-06-27 20:49:59 +0200
committerMattes D <github@xoft.cz>2016-06-27 20:51:53 +0200
commitbf88312a1664311968736b4ba7ce1458c8b0954e (patch)
tree59bae2de637b5f3c629db8e55fb44a3106266709 /src/Bindings/LuaState.h
parentRemoved dead code related to callbacks. (diff)
downloadcuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar
cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.gz
cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.bz2
cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.lz
cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.xz
cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.tar.zst
cuberite-bf88312a1664311968736b4ba7ce1458c8b0954e.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 d3acb2797..106d8a783 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -216,7 +216,8 @@ public:
Use cCallbackPtr for a copyable object. */
cCallback(cCallback &&) = delete;
};
- typedef SharedPtr<cCallback> cCallbackPtr;
+ typedef UniquePtr<cCallback> cCallbackPtr;
+ typedef SharedPtr<cCallback> cCallbackSharedPtr;
/** A dummy class that's used only to delimit function args from return values for cLuaState::Call() */
@@ -380,6 +381,7 @@ public:
bool GetStackValue(int a_StackPos, bool & a_Value);
bool GetStackValue(int a_StackPos, cCallback & a_Callback);
bool GetStackValue(int a_StackPos, cCallbackPtr & a_Callback);
+ bool GetStackValue(int a_StackPos, cCallbackSharedPtr & a_Callback);
bool GetStackValue(int a_StackPos, cPluginManager::CommandResult & a_Result);
bool GetStackValue(int a_StackPos, cRef & a_Ref);
bool GetStackValue(int a_StackPos, double & a_Value);