Lua/LuaInstance: Add move constructor/operator
Former-commit-id: 654b377ce33592ef46de7897c1e0bdf6c7f07c1f [formerly 9327749669eecb4a1d1d5cf56da5b0466a3b3886] [formerly 871d797c2fa0480b80d0436da16854eeeb5e8cd9 [formerly 2cd45f642aaaa3859f66967e0e9ef99a8a3e2a16]] Former-commit-id: 14fc3c4a28f3c596488c7d70ef4f4620678a472e [formerly 9e069af52441137bbccab5e70feb1310b5416754] Former-commit-id: 0a6cf051bb0eb5bf439e5eb1071b83e78feacd35
This commit is contained in:
@@ -31,7 +31,7 @@ namespace Nz
|
||||
public:
|
||||
LuaInstance();
|
||||
LuaInstance(const LuaInstance&) = delete;
|
||||
LuaInstance(LuaInstance&&) = delete; ///TODO
|
||||
inline LuaInstance(LuaInstance&& instance) noexcept;
|
||||
~LuaInstance();
|
||||
|
||||
void ArgCheck(bool condition, unsigned int argNum, const char* error);
|
||||
@@ -172,7 +172,7 @@ namespace Nz
|
||||
void* ToUserdata(int index, const String& tname) const;
|
||||
|
||||
LuaInstance& operator=(const LuaInstance&) = delete;
|
||||
LuaInstance& operator=(LuaInstance&&) = delete; ///TODO
|
||||
inline LuaInstance& operator=(LuaInstance&& instance) noexcept;
|
||||
|
||||
static int GetIndexOfUpValue(int upValue);
|
||||
static LuaInstance* GetInstance(lua_State* state);
|
||||
|
||||
Reference in New Issue
Block a user