inline iiiiiit

This commit is contained in:
ThePhD 2017-08-27 00:41:10 -04:00
parent a39679293c
commit ec34e2ca96
3 changed files with 13 additions and 10 deletions

1
.gitignore vendored
View File

@ -80,3 +80,4 @@ temp.bad_runtime.lua
temp.bad_syntax.lua temp.bad_syntax.lua
temp.good.lua temp.good.lua
catch_mock.hpp catch_mock.hpp
main_aux.cpp

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script. // This file was generated with a script.
// Generated 2017-08-27 04:00:40.261712 UTC // Generated 2017-08-27 04:40:46.804312 UTC
// This header was generated with sol v2.18.1 (revision 626da4d) // This header was generated with sol v2.18.0 (revision a396792)
// https://github.com/ThePhD/sol2 // https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_HPP #ifndef SOL_SINGLE_INCLUDE_HPP
@ -11835,13 +11835,14 @@ namespace sol {
namespace sol { namespace sol {
protected_function_result::protected_function_result(function_result&& o) noexcept : L(o.lua_state()), index(o.stack_index()), returncount(o.return_count()), popcount(o.return_count()), err(o.status()) { inline protected_function_result::protected_function_result(function_result&& o) noexcept : L(o.lua_state()), index(o.stack_index()), returncount(o.return_count()), popcount(o.return_count()), err(o.status()) {
// Must be manual, otherwise destructor will screw us // Must be manual, otherwise destructor will screw us
// return count being 0 is enough to keep things clean // return count being 0 is enough to keep things clean
// but we will be thorough // but we will be thorough
o.abandon(); o.abandon();
} }
protected_function_result& protected_function_result::operator=(function_result&& o) noexcept {
inline protected_function_result& protected_function_result::operator=(function_result&& o) noexcept {
L = o.lua_state(); L = o.lua_state();
index = o.stack_index(); index = o.stack_index();
returncount = o.return_count(); returncount = o.return_count();
@ -11854,13 +11855,13 @@ namespace sol {
return *this; return *this;
} }
function_result::function_result(protected_function_result&& o) noexcept : L(o.lua_state()), index(o.stack_index()), returncount(o.return_count()) { inline function_result::function_result(protected_function_result&& o) noexcept : L(o.lua_state()), index(o.stack_index()), returncount(o.return_count()) {
// Must be manual, otherwise destructor will screw us // Must be manual, otherwise destructor will screw us
// return count being 0 is enough to keep things clean // return count being 0 is enough to keep things clean
// but we will be thorough // but we will be thorough
o.abandon(); o.abandon();
} }
function_result& function_result::operator=(protected_function_result&& o) noexcept { inline function_result& function_result::operator=(protected_function_result&& o) noexcept {
L = o.lua_state(); L = o.lua_state();
index = o.stack_index(); index = o.stack_index();
returncount = o.return_count(); returncount = o.return_count();

View File

@ -29,13 +29,14 @@
namespace sol { namespace sol {
protected_function_result::protected_function_result(function_result&& o) noexcept : L(o.lua_state()), index(o.stack_index()), returncount(o.return_count()), popcount(o.return_count()), err(o.status()) { inline protected_function_result::protected_function_result(function_result&& o) noexcept : L(o.lua_state()), index(o.stack_index()), returncount(o.return_count()), popcount(o.return_count()), err(o.status()) {
// Must be manual, otherwise destructor will screw us // Must be manual, otherwise destructor will screw us
// return count being 0 is enough to keep things clean // return count being 0 is enough to keep things clean
// but we will be thorough // but we will be thorough
o.abandon(); o.abandon();
} }
protected_function_result& protected_function_result::operator=(function_result&& o) noexcept {
inline protected_function_result& protected_function_result::operator=(function_result&& o) noexcept {
L = o.lua_state(); L = o.lua_state();
index = o.stack_index(); index = o.stack_index();
returncount = o.return_count(); returncount = o.return_count();
@ -48,13 +49,13 @@ namespace sol {
return *this; return *this;
} }
function_result::function_result(protected_function_result&& o) noexcept : L(o.lua_state()), index(o.stack_index()), returncount(o.return_count()) { inline function_result::function_result(protected_function_result&& o) noexcept : L(o.lua_state()), index(o.stack_index()), returncount(o.return_count()) {
// Must be manual, otherwise destructor will screw us // Must be manual, otherwise destructor will screw us
// return count being 0 is enough to keep things clean // return count being 0 is enough to keep things clean
// but we will be thorough // but we will be thorough
o.abandon(); o.abandon();
} }
function_result& function_result::operator=(protected_function_result&& o) noexcept { inline function_result& function_result::operator=(protected_function_result&& o) noexcept {
L = o.lua_state(); L = o.lua_state();
index = o.stack_index(); index = o.stack_index();
returncount = o.return_count(); returncount = o.return_count();