aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoïc Blot <loic.blot@unix-experience.fr>2017-04-27 11:52:44 +0200
committerLoïc Blot <loic.blot@unix-experience.fr>2017-04-27 11:52:44 +0200
commitb82e5ec8804e9058b48f3d2a168a4c019a777055 (patch)
tree0dc490c72ea6ef1e12f5a73217a9ca326faf0a6c /src
parent1ef9eee31133a3001ed0c642df5cbe54169850de (diff)
downloadminetest-b82e5ec8804e9058b48f3d2a168a4c019a777055.tar.gz
minetest-b82e5ec8804e9058b48f3d2a168a4c019a777055.tar.bz2
minetest-b82e5ec8804e9058b48f3d2a168a4c019a777055.zip
Don't permit to copy Scripting classes (Client,Server,Mainmenu)
Diffstat (limited to 'src')
-rw-r--r--src/script/scripting_client.h2
-rw-r--r--src/script/scripting_mainmenu.h2
-rw-r--r--src/script/scripting_server.h2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/script/scripting_client.h b/src/script/scripting_client.h
index df94e8b71..b3451e409 100644
--- a/src/script/scripting_client.h
+++ b/src/script/scripting_client.h
@@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "cpp_api/s_base.h"
#include "cpp_api/s_client.h"
#include "cpp_api/s_security.h"
+#include "util/basic_macros.h"
class Client;
class LocalPlayer;
@@ -38,5 +39,6 @@ public:
private:
virtual void InitializeModApi(lua_State *L, int top);
+ DISABLE_CLASS_COPY(ClientScripting);
};
#endif
diff --git a/src/script/scripting_mainmenu.h b/src/script/scripting_mainmenu.h
index a1385ba9c..9aacd55d6 100644
--- a/src/script/scripting_mainmenu.h
+++ b/src/script/scripting_mainmenu.h
@@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "cpp_api/s_base.h"
#include "cpp_api/s_mainmenu.h"
#include "cpp_api/s_async.h"
+#include "util/basic_macros.h"
/*****************************************************************************/
/* Scripting <-> Main Menu Interface */
@@ -45,6 +46,7 @@ private:
void initializeModApi(lua_State *L, int top);
AsyncEngine asyncEngine;
+ DISABLE_CLASS_COPY(MainMenuScripting);
};
diff --git a/src/script/scripting_server.h b/src/script/scripting_server.h
index fd97ea40b..1b335406e 100644
--- a/src/script/scripting_server.h
+++ b/src/script/scripting_server.h
@@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "cpp_api/s_player.h"
#include "cpp_api/s_server.h"
#include "cpp_api/s_security.h"
+#include "util/basic_macros.h"
/*****************************************************************************/
/* Scripting <-> Server Game Interface */
@@ -50,6 +51,7 @@ public:
private:
void InitializeModApi(lua_State *L, int top);
+ DISABLE_CLASS_COPY(ServerScripting);
};
void log_deprecated(const std::string &message);