Core: Remove NonCopyable
Former-commit-id: f8c6d10ad0b1abb4a32e3c867b7f24fd4bde68a4
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Core/Clock.hpp>
|
||||
#include <Nazara/Core/InputStream.hpp>
|
||||
#include <Nazara/Core/NonCopyable.hpp>
|
||||
#include <Nazara/Core/String.hpp>
|
||||
#include <Nazara/Lua/Config.hpp>
|
||||
#include <Nazara/Lua/Enums.hpp>
|
||||
@@ -25,10 +24,12 @@ class NzLuaInstance;
|
||||
using NzLuaCFunction = int (*)(lua_State* state);
|
||||
using NzLuaFunction = std::function<int(NzLuaInstance& instance)>;
|
||||
|
||||
class NAZARA_LUA_API NzLuaInstance : NzNonCopyable
|
||||
class NAZARA_LUA_API NzLuaInstance
|
||||
{
|
||||
public:
|
||||
NzLuaInstance();
|
||||
NzLuaInstance(const NzLuaInstance&) = delete;
|
||||
NzLuaInstance(NzLuaInstance&&) = delete; ///TODO
|
||||
~NzLuaInstance();
|
||||
|
||||
void ArgCheck(bool condition, unsigned int argNum, const char* error);
|
||||
@@ -148,6 +149,9 @@ class NAZARA_LUA_API NzLuaInstance : NzNonCopyable
|
||||
void* ToUserdata(int index, const char* tname) const;
|
||||
void* ToUserdata(int index, const NzString& tname) const;
|
||||
|
||||
NzLuaInstance& operator=(const NzLuaInstance&) = delete;
|
||||
NzLuaInstance& operator=(NzLuaInstance&&) = delete; ///TODO
|
||||
|
||||
static int GetIndexOfUpValue(int upValue);
|
||||
static NzLuaInstance* GetInstance(lua_State* state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user