summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2017-05-09 13:21:03 +0200
committerLukas Pioch <lukas@zgow.de>2017-05-09 14:10:53 +0200
commit3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c (patch)
tree78f4f70ccad9c0534119651db7af7e7ec478485f /src/Bindings/LuaState.h
parentUpdated Core and ProtectionAreas to latest. (diff)
downloadcuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.tar
cuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.tar.gz
cuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.tar.bz2
cuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.tar.lz
cuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.tar.xz
cuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.tar.zst
cuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.zip
Diffstat (limited to 'src/Bindings/LuaState.h')
-rw-r--r--src/Bindings/LuaState.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h
index 1a56c18ff..ac911557d 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -573,22 +573,16 @@ public:
}
// Push a const value onto the stack (keep alpha-sorted):
+ // Note that these functions will make a copy of the actual value, because Lua doesn't have the concept
+ // of "const", and there would be lifetime management problems if they didn't.
void Push(const AString & a_String);
void Push(const AStringMap & a_Dictionary);
void Push(const AStringVector & a_Vector);
- void Push(const cCraftingGrid * a_Grid);
- void Push(const cCraftingRecipe * a_Recipe);
void Push(const char * a_Value);
- void Push(const cItems & a_Items);
void Push(const cNil & a_Nil);
- void Push(const cPlayer * a_Player);
void Push(const cRef & a_Ref);
- void Push(const HTTPRequest * a_Request);
- void Push(const HTTPTemplateRequest * a_Request);
void Push(const Vector3d & a_Vector);
- void Push(const Vector3d * a_Vector);
void Push(const Vector3i & a_Vector);
- void Push(const Vector3i * a_Vector);
// Push a simple value onto the stack (keep alpha-sorted):
void Push(bool a_Value);