summaryrefslogtreecommitdiffstats
path: root/tests/LuaThreadStress
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-08-25 14:43:18 +0200
committerAlexander Harkness <me@bearbin.net>2017-08-25 14:43:18 +0200
commitf4f2fc7c3d76eb3dc5a91c5eefb36c10597d6cb7 (patch)
tree70139b1ad7ed221e4b75c3a9e247b337de68eb07 /tests/LuaThreadStress
parentcompile.sh update. Fixed -d and -n, intelligent thread choice (#3960) (diff)
downloadcuberite-f4f2fc7c3d76eb3dc5a91c5eefb36c10597d6cb7.tar
cuberite-f4f2fc7c3d76eb3dc5a91c5eefb36c10597d6cb7.tar.gz
cuberite-f4f2fc7c3d76eb3dc5a91c5eefb36c10597d6cb7.tar.bz2
cuberite-f4f2fc7c3d76eb3dc5a91c5eefb36c10597d6cb7.tar.lz
cuberite-f4f2fc7c3d76eb3dc5a91c5eefb36c10597d6cb7.tar.xz
cuberite-f4f2fc7c3d76eb3dc5a91c5eefb36c10597d6cb7.tar.zst
cuberite-f4f2fc7c3d76eb3dc5a91c5eefb36c10597d6cb7.zip
Diffstat (limited to 'tests/LuaThreadStress')
-rw-r--r--tests/LuaThreadStress/LuaState_Declaration.inc5
-rw-r--r--tests/LuaThreadStress/LuaState_Typedefs.inc1
-rw-r--r--tests/LuaThreadStress/Stubs.cpp21
3 files changed, 26 insertions, 1 deletions
diff --git a/tests/LuaThreadStress/LuaState_Declaration.inc b/tests/LuaThreadStress/LuaState_Declaration.inc
index 4019b26c6..8b342e1b1 100644
--- a/tests/LuaThreadStress/LuaState_Declaration.inc
+++ b/tests/LuaThreadStress/LuaState_Declaration.inc
@@ -2,3 +2,8 @@
// LuaState_Declaration.inc
// Dummy include file needed for LuaState to compile successfully
+
+
+bool GetStackValue(int, cUUID *&);
+
+
diff --git a/tests/LuaThreadStress/LuaState_Typedefs.inc b/tests/LuaThreadStress/LuaState_Typedefs.inc
index 5eba7c6f8..e79633556 100644
--- a/tests/LuaThreadStress/LuaState_Typedefs.inc
+++ b/tests/LuaThreadStress/LuaState_Typedefs.inc
@@ -14,6 +14,7 @@ class cPluginLua;
class cBoundingBox;
template <typename T> class cItemCallback;
class cEntity;
+class cUUID;
diff --git a/tests/LuaThreadStress/Stubs.cpp b/tests/LuaThreadStress/Stubs.cpp
index 709c7efe5..98fbf5b74 100644
--- a/tests/LuaThreadStress/Stubs.cpp
+++ b/tests/LuaThreadStress/Stubs.cpp
@@ -7,13 +7,14 @@
#include "Globals.h"
#include "BlockInfo.h"
#include "Bindings.h"
+#include "DeadlockDetect.h"
+#include "UUID.h"
#include "Bindings/DeprecatedBindings.h"
#include "Bindings/LuaJson.h"
#include "Bindings/ManualBindings.h"
#include "BlockEntities/BlockEntity.h"
#include "Blocks/BlockHandler.h"
#include "Generating/ChunkDesc.h"
-#include "DeadlockDetect.h"
@@ -333,3 +334,21 @@ cBlockEntity * cBlockEntity::Clone(int a_BlockX, int a_BlockY, int a_BlockZ)
+
+bool cLuaState::GetStackValue(int, cUUID *&)
+{
+ return false;
+}
+
+
+
+
+
+bool cUUID::FromString(const AString &)
+{
+ return true;
+}
+
+
+
+