diff --git a/.clang-format b/.clang-format index ec1b2a394..e8daa25ad 100644 --- a/.clang-format +++ b/.clang-format @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/.dockerignore b/.dockerignore index 373415782..b12c08b8f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,7 +1,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/.gitignore b/.gitignore index 35fca6b28..02482c5ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/.travis.yml b/.travis.yml index 73db54a92..514bf984e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/CMakeLists.txt b/CMakeLists.txt index 217d3cebf..961b39d6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/LICENSE.txt b/LICENSE.txt index 86d0851db..d4b16a7e4 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/appveyor.yml b/appveyor.yml index 34d0caf66..218ee6519 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/cmake/Modules/Common/Core.cmake b/cmake/Modules/Common/Core.cmake index d50f152d1..61686a58a 100644 --- a/cmake/Modules/Common/Core.cmake +++ b/cmake/Modules/Common/Core.cmake @@ -1,7 +1,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/cmake/Modules/FindCatch.cmake b/cmake/Modules/FindCatch.cmake index ec9b1828c..d4c2c2258 100644 --- a/cmake/Modules/FindCatch.cmake +++ b/cmake/Modules/FindCatch.cmake @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/cmake/Modules/FindKaguyaBuild.cmake b/cmake/Modules/FindKaguyaBuild.cmake index 121bd5322..dbef9451a 100644 --- a/cmake/Modules/FindKaguyaBuild.cmake +++ b/cmake/Modules/FindKaguyaBuild.cmake @@ -2,7 +2,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/cmake/Modules/FindLua/set_version_vars.cmake b/cmake/Modules/FindLua/set_version_vars.cmake index fad0fccae..314265af9 100644 --- a/cmake/Modules/FindLua/set_version_vars.cmake +++ b/cmake/Modules/FindLua/set_version_vars.cmake @@ -1,7 +1,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/cmake/Modules/FindLuaBridgeBuild.cmake b/cmake/Modules/FindLuaBridgeBuild.cmake index 9d0b7b0bd..ffe0a7e01 100644 --- a/cmake/Modules/FindLuaBridgeBuild.cmake +++ b/cmake/Modules/FindLuaBridgeBuild.cmake @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/cmake/Modules/FindLuaBuild.cmake b/cmake/Modules/FindLuaBuild.cmake index b2287add5..b0d3c60ce 100644 --- a/cmake/Modules/FindLuaBuild.cmake +++ b/cmake/Modules/FindLuaBuild.cmake @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/cmake/Modules/FindLuaBuild/LuaJIT.cmake b/cmake/Modules/FindLuaBuild/LuaJIT.cmake index 7327f8f67..c1e88d42e 100644 --- a/cmake/Modules/FindLuaBuild/LuaJIT.cmake +++ b/cmake/Modules/FindLuaBuild/LuaJIT.cmake @@ -1,7 +1,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/cmake/Modules/FindLuaBuild/LuaVanilla.cmake b/cmake/Modules/FindLuaBuild/LuaVanilla.cmake index 78e6aa346..50f84c622 100644 --- a/cmake/Modules/FindLuaBuild/LuaVanilla.cmake +++ b/cmake/Modules/FindLuaBuild/LuaVanilla.cmake @@ -1,7 +1,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/cmake/Modules/FindLuwraBuild.cmake b/cmake/Modules/FindLuwraBuild.cmake index a689d6a62..243e1365e 100644 --- a/cmake/Modules/FindLuwraBuild.cmake +++ b/cmake/Modules/FindLuwraBuild.cmake @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/cmake/Modules/FindToLuappBuild.cmake b/cmake/Modules/FindToLuappBuild.cmake index 223908162..c88cfa2cd 100644 --- a/cmake/Modules/FindToLuappBuild.cmake +++ b/cmake/Modules/FindToLuappBuild.cmake @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/cmake/sol2-config.cmake.in b/cmake/sol2-config.cmake.in index 0578f95ce..70c448d2b 100644 --- a/cmake/sol2-config.cmake.in +++ b/cmake/sol2-config.cmake.in @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 85ed3cbd0..57011ffe8 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index e366a0bf6..7ca4c1a9c 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,7 +1,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/examples/interop/LuaBridge/CMakeLists.txt b/examples/interop/LuaBridge/CMakeLists.txt index f6c8187d7..4e644cbef 100644 --- a/examples/interop/LuaBridge/CMakeLists.txt +++ b/examples/interop/LuaBridge/CMakeLists.txt @@ -1,7 +1,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/examples/interop/kaguya/CMakeLists.txt b/examples/interop/kaguya/CMakeLists.txt index 27a984640..9e1bc8e9d 100644 --- a/examples/interop/kaguya/CMakeLists.txt +++ b/examples/interop/kaguya/CMakeLists.txt @@ -1,7 +1,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/examples/interop/luwra/CMakeLists.txt b/examples/interop/luwra/CMakeLists.txt index aea6c7d28..ef6c45015 100644 --- a/examples/interop/luwra/CMakeLists.txt +++ b/examples/interop/luwra/CMakeLists.txt @@ -1,7 +1,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/examples/interop/tolua/CMakeLists.txt b/examples/interop/tolua/CMakeLists.txt index 3c45eb5f4..fc3ce957d 100644 --- a/examples/interop/tolua/CMakeLists.txt +++ b/examples/interop/tolua/CMakeLists.txt @@ -1,7 +1,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/examples/require_dll_example/CMakeLists.txt b/examples/require_dll_example/CMakeLists.txt index 667e889ab..4c93a04f0 100644 --- a/examples/require_dll_example/CMakeLists.txt +++ b/examples/require_dll_example/CMakeLists.txt @@ -1,7 +1,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/as_args.hpp b/include/sol/as_args.hpp index 40311d671..b2d25275a 100644 --- a/include/sol/as_args.hpp +++ b/include/sol/as_args.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/as_returns.hpp b/include/sol/as_returns.hpp index f4688da0e..76448a8f6 100644 --- a/include/sol/as_returns.hpp +++ b/include/sol/as_returns.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/bind_traits.hpp b/include/sol/bind_traits.hpp index ff56b8a1a..4d1e8a63f 100644 --- a/include/sol/bind_traits.hpp +++ b/include/sol/bind_traits.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/bytecode.hpp b/include/sol/bytecode.hpp new file mode 100644 index 000000000..33c0859c5 --- /dev/null +++ b/include/sol/bytecode.hpp @@ -0,0 +1,100 @@ +// sol3 + +// The MIT License (MIT) + +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors + +// Permission is hereby granted, free of charge, to any person obtaining a copy of +// this software and associated documentation files (the "Software"), to deal in +// the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do so, +// subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#ifndef SOL_BYTECODE_HPP +#define SOL_BYTECODE_HPP + +#include "compatibility.hpp" +#include "string_view.hpp" +#include +#include +#include + +namespace sol { + + template > + class basic_bytecode : private std::vector { + private: + using base_t = std::vector; + + public: + using base_t::value_type; + + using base_t::base_t; + using base_t::operator=; + + using base_t::data; + using base_t::empty; + using base_t::max_size; + using base_t::size; + + using base_t::at; + using base_t::operator[]; + using base_t::back; + using base_t::front; + + using base_t::begin; + using base_t::cbegin; + using base_t::cend; + using base_t::end; + + using base_t::crbegin; + using base_t::crend; + using base_t::rbegin; + using base_t::rend; + + + using base_t::swap; + using base_t::get_allocator; + + using base_t::emplace; + using base_t::emplace_back; + using base_t::insert; + using base_t::pop_back; + using base_t::push_back; + using base_t::reserve; + using base_t::resize; + using base_t::shrink_to_fit; + + string_view as_string_view () const { + return string_view(reinterpret_cast(this->data()), this->size()); + } + }; + + using bytecode = basic_bytecode<>; + + inline int bytecode_dump_writer(lua_State*, const void* memory, size_t memory_size, void* userdata) { + const std::byte* p_code = static_cast(memory); + bytecode& bc = *static_cast(userdata); + try { + bc.insert(bc.cend(), p_code, p_code + memory_size); + } + catch ( ... ) { + return -1; + } + return 0; + } + +} // namespace sol + +#endif // SOL_BYTECODE_HPP diff --git a/include/sol/call.hpp b/include/sol/call.hpp index 9a94e99a0..51d12a3ac 100644 --- a/include/sol/call.hpp +++ b/include/sol/call.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/compatibility.hpp b/include/sol/compatibility.hpp index 8e8a6947e..3d4e3215e 100644 --- a/include/sol/compatibility.hpp +++ b/include/sol/compatibility.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/compatibility/version.hpp b/include/sol/compatibility/version.hpp index a1f202354..0eb6b5f71 100644 --- a/include/sol/compatibility/version.hpp +++ b/include/sol/compatibility/version.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/config.hpp b/include/sol/config.hpp index e0019f83c..0986b6a14 100644 --- a/include/sol/config.hpp +++ b/include/sol/config.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/config_setup.hpp b/include/sol/config_setup.hpp index 8bff0a999..33ea2d291 100644 --- a/include/sol/config_setup.hpp +++ b/include/sol/config_setup.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/coroutine.hpp b/include/sol/coroutine.hpp index 036d78cdd..b4c845d30 100644 --- a/include/sol/coroutine.hpp +++ b/include/sol/coroutine.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/debug.hpp b/include/sol/debug.hpp index d0e481de5..f6bd365a1 100644 --- a/include/sol/debug.hpp +++ b/include/sol/debug.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/demangle.hpp b/include/sol/demangle.hpp index b9b525af9..d11443c5c 100644 --- a/include/sol/demangle.hpp +++ b/include/sol/demangle.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/deprecate.hpp b/include/sol/deprecate.hpp index d0da74a37..cc564a08a 100644 --- a/include/sol/deprecate.hpp +++ b/include/sol/deprecate.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/dump_handler.hpp b/include/sol/dump_handler.hpp new file mode 100644 index 000000000..7aa162af0 --- /dev/null +++ b/include/sol/dump_handler.hpp @@ -0,0 +1,61 @@ +// sol3 + +// The MIT License (MIT) + +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors + +// Permission is hereby granted, free of charge, to any person obtaining a copy of +// this software and associated documentation files (the "Software"), to deal in +// the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do so, +// subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#ifndef SOL_DUMP_HANDLER_HPP +#define SOL_DUMP_HANDLER_HPP + +#include +#include + +namespace sol { + + class dump_error : public error { + private: + int ec_; + + public: + dump_error(int error_code_) : error("dump returned non-zero error of " + std::to_string(error_code_)), ec_(error_code_) { + } + + int error_code () const { + return ec_; + } + }; + + int dump_pass_on_error(int result_code, lua_Writer writer_function, void* userdata, bool strip) { + (void)writer_function; + (void)userdata; + (void)strip; + return result_code; + } + + int dump_throw_on_error(int result_code, lua_Writer writer_function, void* userdata, bool strip) { + (void)writer_function; + (void)userdata; + (void)strip; + throw dump_error(result_code); + } + +} // namespace sol + +#endif // SOL_DUMP_HANDLER_HPP diff --git a/include/sol/ebco.hpp b/include/sol/ebco.hpp index 809aa41ae..aba4cddcd 100644 --- a/include/sol/ebco.hpp +++ b/include/sol/ebco.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/environment.hpp b/include/sol/environment.hpp index 9570d289d..3670e42b3 100644 --- a/include/sol/environment.hpp +++ b/include/sol/environment.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/error.hpp b/include/sol/error.hpp index c0a060332..98bed5031 100644 --- a/include/sol/error.hpp +++ b/include/sol/error.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/error_handler.hpp b/include/sol/error_handler.hpp index f72613e42..6ff1872b7 100644 --- a/include/sol/error_handler.hpp +++ b/include/sol/error_handler.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/feature_test.hpp b/include/sol/feature_test.hpp index 512420dca..dd3b70775 100644 --- a/include/sol/feature_test.hpp +++ b/include/sol/feature_test.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/filters.hpp b/include/sol/filters.hpp index 2ac72eb1d..fbd8811e4 100644 --- a/include/sol/filters.hpp +++ b/include/sol/filters.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/forward.hpp b/include/sol/forward.hpp index 4829fce5f..26dda4329 100644 --- a/include/sol/forward.hpp +++ b/include/sol/forward.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/forward_detail.hpp b/include/sol/forward_detail.hpp index 9495bb801..b0de5e00e 100644 --- a/include/sol/forward_detail.hpp +++ b/include/sol/forward_detail.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/function.hpp b/include/sol/function.hpp index ee6d4b63a..5e7816da1 100644 --- a/include/sol/function.hpp +++ b/include/sol/function.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/function_result.hpp b/include/sol/function_result.hpp index e8517e46a..6e70d5d37 100644 --- a/include/sol/function_result.hpp +++ b/include/sol/function_result.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/function_types.hpp b/include/sol/function_types.hpp index 7c71a3aeb..e6d860a8a 100644 --- a/include/sol/function_types.hpp +++ b/include/sol/function_types.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/function_types_core.hpp b/include/sol/function_types_core.hpp index 5a86960b2..411e0c3cf 100644 --- a/include/sol/function_types_core.hpp +++ b/include/sol/function_types_core.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/function_types_overloaded.hpp b/include/sol/function_types_overloaded.hpp index 6a5e61ff2..896ac362f 100644 --- a/include/sol/function_types_overloaded.hpp +++ b/include/sol/function_types_overloaded.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/function_types_stateful.hpp b/include/sol/function_types_stateful.hpp index 20153c021..92e959770 100644 --- a/include/sol/function_types_stateful.hpp +++ b/include/sol/function_types_stateful.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/function_types_stateless.hpp b/include/sol/function_types_stateless.hpp index cf3ea1b88..c29fd280e 100644 --- a/include/sol/function_types_stateless.hpp +++ b/include/sol/function_types_stateless.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/function_types_templated.hpp b/include/sol/function_types_templated.hpp index 46a8ef926..779b481f4 100644 --- a/include/sol/function_types_templated.hpp +++ b/include/sol/function_types_templated.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/in_place.hpp b/include/sol/in_place.hpp index d2a503d5e..cc371c695 100644 --- a/include/sol/in_place.hpp +++ b/include/sol/in_place.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/inheritance.hpp b/include/sol/inheritance.hpp index b6e221000..e57b1a15c 100644 --- a/include/sol/inheritance.hpp +++ b/include/sol/inheritance.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/load_result.hpp b/include/sol/load_result.hpp index 06f011ffa..027551b59 100644 --- a/include/sol/load_result.hpp +++ b/include/sol/load_result.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/make_reference.hpp b/include/sol/make_reference.hpp index 4491f2d5b..9a404ec78 100644 --- a/include/sol/make_reference.hpp +++ b/include/sol/make_reference.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/map.hpp b/include/sol/map.hpp index 08370abbc..5356523c8 100644 --- a/include/sol/map.hpp +++ b/include/sol/map.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/metatable.hpp b/include/sol/metatable.hpp index 9d985c08b..56c86275d 100644 --- a/include/sol/metatable.hpp +++ b/include/sol/metatable.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/object.hpp b/include/sol/object.hpp index bebcd3041..de987e9c4 100644 --- a/include/sol/object.hpp +++ b/include/sol/object.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/object_base.hpp b/include/sol/object_base.hpp index 5154d654b..b05e67c66 100644 --- a/include/sol/object_base.hpp +++ b/include/sol/object_base.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/optional.hpp b/include/sol/optional.hpp index d502b646f..d447c8e11 100644 --- a/include/sol/optional.hpp +++ b/include/sol/optional.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/optional_implementation.hpp b/include/sol/optional_implementation.hpp index c05fe8bfe..d321abce9 100644 --- a/include/sol/optional_implementation.hpp +++ b/include/sol/optional_implementation.hpp @@ -1,6 +1,6 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/overload.hpp b/include/sol/overload.hpp index 11621dc94..2b2f02014 100644 --- a/include/sol/overload.hpp +++ b/include/sol/overload.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/property.hpp b/include/sol/property.hpp index cebcd6c50..a5ee13f2a 100644 --- a/include/sol/property.hpp +++ b/include/sol/property.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/protect.hpp b/include/sol/protect.hpp index 75cf97707..984952bb0 100644 --- a/include/sol/protect.hpp +++ b/include/sol/protect.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/protected_function.hpp b/include/sol/protected_function.hpp index cec9c86eb..d744f0eb3 100644 --- a/include/sol/protected_function.hpp +++ b/include/sol/protected_function.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in @@ -30,6 +30,8 @@ #include "protected_function_result.hpp" #include "unsafe_function.hpp" #include "protected_handler.hpp" +#include "bytecode.hpp" +#include "dump_handler.hpp" #include #include @@ -261,6 +263,26 @@ namespace sol { #endif // Safety } + template + int dump(lua_Writer writer, void* userdata, bool strip, Fx&& on_error) const { + auto pp = stack::push_pop(*this); + int r = lua_dump(this->lua_state(), writer, userdata, strip ? 1 : 0); + if (r != 0) { + return on_error(r, writer, userdata, strip); + } + return r; + } + + int dump(lua_Writer writer, void* userdata, bool strip = false) const { + return dump(writer, userdata, strip, &dump_pass_on_error); + } + + bytecode dump() const { + bytecode bc; + (void)dump(&bytecode_dump_writer, static_cast(&bc), false, &dump_throw_on_error); + return bc; + } + template protected_function_result operator()(Args&&... args) const { return call<>(std::forward(args)...); diff --git a/include/sol/protected_function_result.hpp b/include/sol/protected_function_result.hpp index 9a2123f2e..19e523e1e 100644 --- a/include/sol/protected_function_result.hpp +++ b/include/sol/protected_function_result.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/protected_handler.hpp b/include/sol/protected_handler.hpp index 82d5ea92a..265041817 100644 --- a/include/sol/protected_handler.hpp +++ b/include/sol/protected_handler.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/proxy.hpp b/include/sol/proxy.hpp index 7b3f2aa15..b0829375c 100644 --- a/include/sol/proxy.hpp +++ b/include/sol/proxy.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/proxy_base.hpp b/include/sol/proxy_base.hpp index 6292139b3..ec022340d 100644 --- a/include/sol/proxy_base.hpp +++ b/include/sol/proxy_base.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/raii.hpp b/include/sol/raii.hpp index da2675731..f8129f2b1 100644 --- a/include/sol/raii.hpp +++ b/include/sol/raii.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/reference.hpp b/include/sol/reference.hpp index 705e92a16..7f851a9ec 100644 --- a/include/sol/reference.hpp +++ b/include/sol/reference.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/resolve.hpp b/include/sol/resolve.hpp index cc1858e2b..036f00c66 100644 --- a/include/sol/resolve.hpp +++ b/include/sol/resolve.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/sol.hpp b/include/sol/sol.hpp index 16b146a2b..d4e916367 100644 --- a/include/sol/sol.hpp +++ b/include/sol/sol.hpp @@ -1,6 +1,6 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack.hpp b/include/sol/stack.hpp index b3903bb7f..030690577 100644 --- a/include/sol/stack.hpp +++ b/include/sol/stack.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_check.hpp b/include/sol/stack_check.hpp index c82319c18..11914ce6b 100644 --- a/include/sol/stack_check.hpp +++ b/include/sol/stack_check.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_check_get.hpp b/include/sol/stack_check_get.hpp index 3a8a9908c..96862e4c5 100644 --- a/include/sol/stack_check_get.hpp +++ b/include/sol/stack_check_get.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_check_get_qualified.hpp b/include/sol/stack_check_get_qualified.hpp index c4fec8178..89e923888 100644 --- a/include/sol/stack_check_get_qualified.hpp +++ b/include/sol/stack_check_get_qualified.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_check_get_unqualified.hpp b/include/sol/stack_check_get_unqualified.hpp index 66aa3e8fa..52f507b77 100644 --- a/include/sol/stack_check_get_unqualified.hpp +++ b/include/sol/stack_check_get_unqualified.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_check_qualified.hpp b/include/sol/stack_check_qualified.hpp index d67c7f792..69675e067 100644 --- a/include/sol/stack_check_qualified.hpp +++ b/include/sol/stack_check_qualified.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_check_unqualified.hpp b/include/sol/stack_check_unqualified.hpp index a42ec6b7c..af4549f0e 100644 --- a/include/sol/stack_check_unqualified.hpp +++ b/include/sol/stack_check_unqualified.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_core.hpp b/include/sol/stack_core.hpp index 6ca482829..dd7546ce4 100644 --- a/include/sol/stack_core.hpp +++ b/include/sol/stack_core.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_field.hpp b/include/sol/stack_field.hpp index ea767f8ae..42dd2974b 100644 --- a/include/sol/stack_field.hpp +++ b/include/sol/stack_field.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_get.hpp b/include/sol/stack_get.hpp index a7f68f364..fc8c7e26c 100644 --- a/include/sol/stack_get.hpp +++ b/include/sol/stack_get.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_get_qualified.hpp b/include/sol/stack_get_qualified.hpp index 2e8b517a6..4631a0f0b 100644 --- a/include/sol/stack_get_qualified.hpp +++ b/include/sol/stack_get_qualified.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_get_unqualified.hpp b/include/sol/stack_get_unqualified.hpp index 3c5e592cf..dfc2d5886 100644 --- a/include/sol/stack_get_unqualified.hpp +++ b/include/sol/stack_get_unqualified.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_guard.hpp b/include/sol/stack_guard.hpp index 2a2120d3a..dca393015 100644 --- a/include/sol/stack_guard.hpp +++ b/include/sol/stack_guard.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_iterator.hpp b/include/sol/stack_iterator.hpp index eff673afa..b3b783cb5 100644 --- a/include/sol/stack_iterator.hpp +++ b/include/sol/stack_iterator.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_pop.hpp b/include/sol/stack_pop.hpp index f5790b5e7..a890c796b 100644 --- a/include/sol/stack_pop.hpp +++ b/include/sol/stack_pop.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_probe.hpp b/include/sol/stack_probe.hpp index c270f7edb..02a059aea 100644 --- a/include/sol/stack_probe.hpp +++ b/include/sol/stack_probe.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_proxy.hpp b/include/sol/stack_proxy.hpp index e23161c4e..64f6fb0e3 100644 --- a/include/sol/stack_proxy.hpp +++ b/include/sol/stack_proxy.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_proxy_base.hpp b/include/sol/stack_proxy_base.hpp index 7823d4a61..5195db86f 100644 --- a/include/sol/stack_proxy_base.hpp +++ b/include/sol/stack_proxy_base.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_push.hpp b/include/sol/stack_push.hpp index 4e5a43e24..b58830c0c 100644 --- a/include/sol/stack_push.hpp +++ b/include/sol/stack_push.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/stack_reference.hpp b/include/sol/stack_reference.hpp index 1bc602164..15b6ec711 100644 --- a/include/sol/stack_reference.hpp +++ b/include/sol/stack_reference.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/state.hpp b/include/sol/state.hpp index 3d18ab351..6327a42c7 100644 --- a/include/sol/state.hpp +++ b/include/sol/state.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/state_handling.hpp b/include/sol/state_handling.hpp index d6b39bdf4..f1694d6b8 100644 --- a/include/sol/state_handling.hpp +++ b/include/sol/state_handling.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/state_view.hpp b/include/sol/state_view.hpp index a7ad768ca..db05e1ac7 100644 --- a/include/sol/state_view.hpp +++ b/include/sol/state_view.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in @@ -549,6 +549,10 @@ namespace sol { return load(string_view(buff, size), chunkname, mode); } + load_result load_buffer(const std::byte* buff, size_t size, const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) { + return load(string_view(reinterpret_cast(buff), size), chunkname, mode); + } + load_result load_file(const std::string& filename, load_mode mode = load_mode::any) { load_status x = static_cast(luaL_loadfilex(L, filename.c_str(), to_string(mode).c_str())); return load_result(L, absolute_index(L, -1), 1, 1, x); diff --git a/include/sol/string_view.hpp b/include/sol/string_view.hpp index 46d726fd8..e631727c1 100644 --- a/include/sol/string_view.hpp +++ b/include/sol/string_view.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/table.hpp b/include/sol/table.hpp index 1ed0789e8..b5c2371b3 100644 --- a/include/sol/table.hpp +++ b/include/sol/table.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/table_core.hpp b/include/sol/table_core.hpp index 9d0cc74ee..d6f717edc 100644 --- a/include/sol/table_core.hpp +++ b/include/sol/table_core.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/table_iterator.hpp b/include/sol/table_iterator.hpp index c2ce6b294..3f5662c59 100644 --- a/include/sol/table_iterator.hpp +++ b/include/sol/table_iterator.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/thread.hpp b/include/sol/thread.hpp index 1752d9497..a631e7421 100644 --- a/include/sol/thread.hpp +++ b/include/sol/thread.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/tie.hpp b/include/sol/tie.hpp index c610fa80a..4f86be47b 100644 --- a/include/sol/tie.hpp +++ b/include/sol/tie.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/traits.hpp b/include/sol/traits.hpp index 4be5e1629..ae6384355 100644 --- a/include/sol/traits.hpp +++ b/include/sol/traits.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/trampoline.hpp b/include/sol/trampoline.hpp index 2124e6f3f..025450e2f 100644 --- a/include/sol/trampoline.hpp +++ b/include/sol/trampoline.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/tuple.hpp b/include/sol/tuple.hpp index 6f1e9f620..5d0ed4fc9 100644 --- a/include/sol/tuple.hpp +++ b/include/sol/tuple.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/types.hpp b/include/sol/types.hpp index 6248ebc8f..34f87b569 100644 --- a/include/sol/types.hpp +++ b/include/sol/types.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/unsafe_function.hpp b/include/sol/unsafe_function.hpp index 4c79eaa76..8a4ac93e4 100644 --- a/include/sol/unsafe_function.hpp +++ b/include/sol/unsafe_function.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in @@ -29,6 +29,8 @@ #include "stack.hpp" #include "function_result.hpp" #include "function_types.hpp" +#include "bytecode.hpp" +#include "dump_handler.hpp" #include namespace sol { @@ -120,6 +122,26 @@ namespace sol { #endif // Safety } + template + int dump(lua_Writer writer, void* userdata, bool strip, Fx&& on_error) const { + auto pp = stack::push_pop(*this); + int r = lua_dump(this->lua_state(), writer, userdata, strip ? 1 : 0); + if (r != 0) { + return on_error(r, writer, userdata, strip); + } + return r; + } + + int dump(lua_Writer writer, void* userdata, bool strip = false) const { + return dump(writer, userdata, strip, &dump_throw_on_error); + } + + bytecode dump() const { + bytecode bc; + (void)dump(&bytecode_dump_writer, static_cast(&bc), strip, &dump_throw_on_error); + return bc; + } + template unsafe_function_result operator()(Args&&... args) const { return call<>(std::forward(args)...); diff --git a/include/sol/unsafe_function_result.hpp b/include/sol/unsafe_function_result.hpp index 5c74106ee..2273dcf4a 100644 --- a/include/sol/unsafe_function_result.hpp +++ b/include/sol/unsafe_function_result.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/userdata.hpp b/include/sol/userdata.hpp index a5fe9faa8..15c5635bb 100644 --- a/include/sol/userdata.hpp +++ b/include/sol/userdata.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/usertype.hpp b/include/sol/usertype.hpp index c53d97ac9..82b85af41 100644 --- a/include/sol/usertype.hpp +++ b/include/sol/usertype.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/usertype_container.hpp b/include/sol/usertype_container.hpp index 177469011..ec12023e7 100644 --- a/include/sol/usertype_container.hpp +++ b/include/sol/usertype_container.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/usertype_container_launch.hpp b/include/sol/usertype_container_launch.hpp index 2430802b0..1119af28e 100644 --- a/include/sol/usertype_container_launch.hpp +++ b/include/sol/usertype_container_launch.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/usertype_core.hpp b/include/sol/usertype_core.hpp index 818f50597..ecbc327c9 100644 --- a/include/sol/usertype_core.hpp +++ b/include/sol/usertype_core.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/usertype_proxy.hpp b/include/sol/usertype_proxy.hpp index f3cad09a8..bb93c176c 100644 --- a/include/sol/usertype_proxy.hpp +++ b/include/sol/usertype_proxy.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/usertype_storage.hpp b/include/sol/usertype_storage.hpp index c0b78d86a..9bdfd1c8b 100644 --- a/include/sol/usertype_storage.hpp +++ b/include/sol/usertype_storage.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/usertype_traits.hpp b/include/sol/usertype_traits.hpp index ffd8dc148..85363ed6f 100644 --- a/include/sol/usertype_traits.hpp +++ b/include/sol/usertype_traits.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/variadic_args.hpp b/include/sol/variadic_args.hpp index 10b7cb271..14a0c4624 100644 --- a/include/sol/variadic_args.hpp +++ b/include/sol/variadic_args.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/variadic_results.hpp b/include/sol/variadic_results.hpp index 38c6dbc47..baa79c555 100644 --- a/include/sol/variadic_results.hpp +++ b/include/sol/variadic_results.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/include/sol/wrapper.hpp b/include/sol/wrapper.hpp index f34e07a6f..5ff63f1c6 100644 --- a/include/sol/wrapper.hpp +++ b/include/sol/wrapper.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/scripts/build.linux.sh b/scripts/build.linux.sh index 5309207e3..13f44aace 100644 --- a/scripts/build.linux.sh +++ b/scripts/build.linux.sh @@ -3,7 +3,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/scripts/preparation.linux.sh b/scripts/preparation.linux.sh index 3f984d765..f12d551cc 100644 --- a/scripts/preparation.linux.sh +++ b/scripts/preparation.linux.sh @@ -3,7 +3,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/scripts/preparation.osx.sh b/scripts/preparation.osx.sh index b21eed972..10c08a1bd 100644 --- a/scripts/preparation.osx.sh +++ b/scripts/preparation.osx.sh @@ -3,7 +3,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/scripts/push.linux.sh b/scripts/push.linux.sh index 99d6075ea..552e5c511 100644 --- a/scripts/push.linux.sh +++ b/scripts/push.linux.sh @@ -3,7 +3,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/scripts/run.linux.sh b/scripts/run.linux.sh index b497a0fa3..5dae1d950 100644 --- a/scripts/run.linux.sh +++ b/scripts/run.linux.sh @@ -3,7 +3,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/scripts/run.osx.sh b/scripts/run.osx.sh index 2140d7c55..a51ebde87 100644 --- a/scripts/run.osx.sh +++ b/scripts/run.osx.sh @@ -3,7 +3,7 @@ # # # # sol2 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/single/CMakeLists.txt b/single/CMakeLists.txt index 1a2fe2337..6fdf9b8c8 100644 --- a/single/CMakeLists.txt +++ b/single/CMakeLists.txt @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/single/include/sol/forward.hpp b/single/include/sol/forward.hpp index 8540795cd..865ba3f01 100644 --- a/single/include/sol/forward.hpp +++ b/single/include/sol/forward.hpp @@ -1,6 +1,6 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2019-03-10 15:09:32.665841 UTC -// This header was generated with sol v3.0.0 (revision ee13a78) +// Generated 2019-03-13 09:17:33.930555 UTC +// This header was generated with sol v3.0.0 (revision 466e21b) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP diff --git a/single/include/sol/sol.hpp b/single/include/sol/sol.hpp index 3112ecb28..91d70cbe4 100644 --- a/single/include/sol/sol.hpp +++ b/single/include/sol/sol.hpp @@ -1,6 +1,6 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2019-03-10 15:09:32.355673 UTC -// This header was generated with sol v3.0.0 (revision ee13a78) +// Generated 2019-03-13 09:17:33.583517 UTC +// This header was generated with sol v3.0.0 (revision 466e21b) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -17558,6 +17558,111 @@ namespace sol { // end of sol/function_types.hpp +// beginning of sol/bytecode.hpp + +namespace sol { + + template > + class basic_bytecode : private std::vector { + private: + using base_t = std::vector; + + public: + using base_t::value_type; + + using base_t::base_t; + using base_t::operator=; + + using base_t::data; + using base_t::empty; + using base_t::max_size; + using base_t::size; + + using base_t::at; + using base_t::operator[]; + using base_t::back; + using base_t::front; + + using base_t::begin; + using base_t::cbegin; + using base_t::cend; + using base_t::end; + + using base_t::crbegin; + using base_t::crend; + using base_t::rbegin; + using base_t::rend; + + using base_t::swap; + using base_t::get_allocator; + + using base_t::emplace; + using base_t::emplace_back; + using base_t::insert; + using base_t::pop_back; + using base_t::push_back; + using base_t::reserve; + using base_t::resize; + using base_t::shrink_to_fit; + + string_view as_string_view () const { + return string_view(reinterpret_cast(this->data()), this->size()); + } + }; + + using bytecode = basic_bytecode<>; + + inline int bytecode_dump_writer(lua_State*, const void* memory, size_t memory_size, void* userdata) { + const std::byte* p_code = static_cast(memory); + bytecode& bc = *static_cast(userdata); + try { + bc.insert(bc.cend(), p_code, p_code + memory_size); + } + catch ( ... ) { + return -1; + } + return 0; + } + +} // namespace sol + +// end of sol/bytecode.hpp + +// beginning of sol/dump_handler.hpp + +namespace sol { + + class dump_error : public error { + private: + int ec_; + + public: + dump_error(int error_code_) : error("dump returned non-zero error of " + std::to_string(error_code_)), ec_(error_code_) { + } + + int error_code () const { + return ec_; + } + }; + + int dump_pass_on_error(int result_code, lua_Writer writer_function, void* userdata, bool strip) { + (void)writer_function; + (void)userdata; + (void)strip; + return result_code; + } + + int dump_throw_on_error(int result_code, lua_Writer writer_function, void* userdata, bool strip) { + (void)writer_function; + (void)userdata; + (void)strip; + throw dump_error(result_code); + } + +} // namespace sol + +// end of sol/dump_handler.hpp + namespace sol { template class basic_function : public basic_object { @@ -17647,6 +17752,26 @@ namespace sol { #endif // Safety } + template + int dump(lua_Writer writer, void* userdata, bool strip, Fx&& on_error) const { + auto pp = stack::push_pop(*this); + int r = lua_dump(this->lua_state(), writer, userdata, strip ? 1 : 0); + if (r != 0) { + return on_error(r, writer, userdata, strip); + } + return r; + } + + int dump(lua_Writer writer, void* userdata, bool strip = false) const { + return dump(writer, userdata, strip, &dump_throw_on_error); + } + + bytecode dump() const { + bytecode bc; + (void)dump(&bytecode_dump_writer, static_cast(&bc), strip, &dump_throw_on_error); + return bc; + } + template unsafe_function_result operator()(Args&&... args) const { return call<>(std::forward(args)...); @@ -17982,6 +18107,26 @@ namespace sol { #endif // Safety } + template + int dump(lua_Writer writer, void* userdata, bool strip, Fx&& on_error) const { + auto pp = stack::push_pop(*this); + int r = lua_dump(this->lua_state(), writer, userdata, strip ? 1 : 0); + if (r != 0) { + return on_error(r, writer, userdata, strip); + } + return r; + } + + int dump(lua_Writer writer, void* userdata, bool strip = false) const { + return dump(writer, userdata, strip, &dump_pass_on_error); + } + + bytecode dump() const { + bytecode bc; + (void)dump(&bytecode_dump_writer, static_cast(&bc), false, &dump_throw_on_error); + return bc; + } + template protected_function_result operator()(Args&&... args) const { return call<>(std::forward(args)...); @@ -23361,6 +23506,10 @@ namespace sol { return load(string_view(buff, size), chunkname, mode); } + load_result load_buffer(const std::byte* buff, size_t size, const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) { + return load(string_view(reinterpret_cast(buff), size), chunkname, mode); + } + load_result load_file(const std::string& filename, load_mode mode = load_mode::any) { load_status x = static_cast(luaL_loadfilex(L, filename.c_str(), to_string(mode).c_str())); return load_result(L, absolute_index(L, -1), 1, 1, x); diff --git a/single/single.py b/single/single.py index e077be9a7..5d56cfb7a 100644 --- a/single/single.py +++ b/single/single.py @@ -65,7 +65,7 @@ intro = """// The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 340e367a5..2e7ee3708 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/CMakeLists.txt b/tests/compile_tests/CMakeLists.txt index 6feb8821e..f19773af7 100644 --- a/tests/compile_tests/CMakeLists.txt +++ b/tests/compile_tests/CMakeLists.txt @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/as_args.cpp b/tests/compile_tests/source/as_args.cpp index 0a60ac69d..824db0077 100644 --- a/tests/compile_tests/source/as_args.cpp +++ b/tests/compile_tests/source/as_args.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/as_returns.cpp b/tests/compile_tests/source/as_returns.cpp index 9f582a3c7..5c3855479 100644 --- a/tests/compile_tests/source/as_returns.cpp +++ b/tests/compile_tests/source/as_returns.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/bind_traits.cpp b/tests/compile_tests/source/bind_traits.cpp index ae894371e..3f8d362bc 100644 --- a/tests/compile_tests/source/bind_traits.cpp +++ b/tests/compile_tests/source/bind_traits.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/call.cpp b/tests/compile_tests/source/call.cpp index ef6f816d8..a7c799813 100644 --- a/tests/compile_tests/source/call.cpp +++ b/tests/compile_tests/source/call.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/compatibility.cpp b/tests/compile_tests/source/compatibility.cpp index f44ccc02e..02ccb56b4 100644 --- a/tests/compile_tests/source/compatibility.cpp +++ b/tests/compile_tests/source/compatibility.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/compatibility/compat-5.3.cpp b/tests/compile_tests/source/compatibility/compat-5.3.cpp index dacb831f5..a5a035834 100644 --- a/tests/compile_tests/source/compatibility/compat-5.3.cpp +++ b/tests/compile_tests/source/compatibility/compat-5.3.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/compatibility/version.cpp b/tests/compile_tests/source/compatibility/version.cpp index 0cefa7d57..1250fa311 100644 --- a/tests/compile_tests/source/compatibility/version.cpp +++ b/tests/compile_tests/source/compatibility/version.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/config.cpp b/tests/compile_tests/source/config.cpp index 2de2df407..a5d341487 100644 --- a/tests/compile_tests/source/config.cpp +++ b/tests/compile_tests/source/config.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/config_setup.cpp b/tests/compile_tests/source/config_setup.cpp index aa77017a1..86e8311ef 100644 --- a/tests/compile_tests/source/config_setup.cpp +++ b/tests/compile_tests/source/config_setup.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/coroutine.cpp b/tests/compile_tests/source/coroutine.cpp index 96affdc73..d49817418 100644 --- a/tests/compile_tests/source/coroutine.cpp +++ b/tests/compile_tests/source/coroutine.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/debug.cpp b/tests/compile_tests/source/debug.cpp index 14e0b052f..64a8491ca 100644 --- a/tests/compile_tests/source/debug.cpp +++ b/tests/compile_tests/source/debug.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/demangle.cpp b/tests/compile_tests/source/demangle.cpp index cce272e08..5478260b4 100644 --- a/tests/compile_tests/source/demangle.cpp +++ b/tests/compile_tests/source/demangle.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/deprecate.cpp b/tests/compile_tests/source/deprecate.cpp index d29d08359..5af312fa5 100644 --- a/tests/compile_tests/source/deprecate.cpp +++ b/tests/compile_tests/source/deprecate.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/ebco.cpp b/tests/compile_tests/source/ebco.cpp index e235f92f3..7f4ca141d 100644 --- a/tests/compile_tests/source/ebco.cpp +++ b/tests/compile_tests/source/ebco.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/environment.cpp b/tests/compile_tests/source/environment.cpp index 16ec28fed..ee0d00372 100644 --- a/tests/compile_tests/source/environment.cpp +++ b/tests/compile_tests/source/environment.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/error_handler.cpp b/tests/compile_tests/source/error_handler.cpp index f134bf843..c0cb972b3 100644 --- a/tests/compile_tests/source/error_handler.cpp +++ b/tests/compile_tests/source/error_handler.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/feature_test.cpp b/tests/compile_tests/source/feature_test.cpp index a9ba4a133..d9567ee2e 100644 --- a/tests/compile_tests/source/feature_test.cpp +++ b/tests/compile_tests/source/feature_test.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/filters.cpp b/tests/compile_tests/source/filters.cpp index 8d2571bb9..fa9ec2b26 100644 --- a/tests/compile_tests/source/filters.cpp +++ b/tests/compile_tests/source/filters.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/forward.cpp b/tests/compile_tests/source/forward.cpp index 004009f0d..7e443e0d8 100644 --- a/tests/compile_tests/source/forward.cpp +++ b/tests/compile_tests/source/forward.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/forward_detail.cpp b/tests/compile_tests/source/forward_detail.cpp index 3cfcd815c..93610dab3 100644 --- a/tests/compile_tests/source/forward_detail.cpp +++ b/tests/compile_tests/source/forward_detail.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/function.cpp b/tests/compile_tests/source/function.cpp index 4ae93a2bb..4bb936489 100644 --- a/tests/compile_tests/source/function.cpp +++ b/tests/compile_tests/source/function.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/function_result.cpp b/tests/compile_tests/source/function_result.cpp index cd14962bd..4e0cbbf33 100644 --- a/tests/compile_tests/source/function_result.cpp +++ b/tests/compile_tests/source/function_result.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/function_types.cpp b/tests/compile_tests/source/function_types.cpp index 2bbb90bfb..f004b7e0a 100644 --- a/tests/compile_tests/source/function_types.cpp +++ b/tests/compile_tests/source/function_types.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/function_types_core.cpp b/tests/compile_tests/source/function_types_core.cpp index d661fb727..627d1e4c0 100644 --- a/tests/compile_tests/source/function_types_core.cpp +++ b/tests/compile_tests/source/function_types_core.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/function_types_overloaded.cpp b/tests/compile_tests/source/function_types_overloaded.cpp index a0cf539c0..94374074b 100644 --- a/tests/compile_tests/source/function_types_overloaded.cpp +++ b/tests/compile_tests/source/function_types_overloaded.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/function_types_stateful.cpp b/tests/compile_tests/source/function_types_stateful.cpp index b318e9506..414116b96 100644 --- a/tests/compile_tests/source/function_types_stateful.cpp +++ b/tests/compile_tests/source/function_types_stateful.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/function_types_stateless.cpp b/tests/compile_tests/source/function_types_stateless.cpp index 6c8312479..8e96d6e76 100644 --- a/tests/compile_tests/source/function_types_stateless.cpp +++ b/tests/compile_tests/source/function_types_stateless.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/function_types_templated.cpp b/tests/compile_tests/source/function_types_templated.cpp index 08aa43e56..55c3a4bae 100644 --- a/tests/compile_tests/source/function_types_templated.cpp +++ b/tests/compile_tests/source/function_types_templated.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/in_place.cpp b/tests/compile_tests/source/in_place.cpp index 6086caf8d..f714ff272 100644 --- a/tests/compile_tests/source/in_place.cpp +++ b/tests/compile_tests/source/in_place.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/inheritance.cpp b/tests/compile_tests/source/inheritance.cpp index 2fd858a73..e348f7ff8 100644 --- a/tests/compile_tests/source/inheritance.cpp +++ b/tests/compile_tests/source/inheritance.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/load_result.cpp b/tests/compile_tests/source/load_result.cpp index f9ff5808e..665205dfa 100644 --- a/tests/compile_tests/source/load_result.cpp +++ b/tests/compile_tests/source/load_result.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/main.cpp b/tests/compile_tests/source/main.cpp index fb21ab3a0..22dfbbb7c 100644 --- a/tests/compile_tests/source/main.cpp +++ b/tests/compile_tests/source/main.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/make_reference.cpp b/tests/compile_tests/source/make_reference.cpp index da4ac731e..74719eaef 100644 --- a/tests/compile_tests/source/make_reference.cpp +++ b/tests/compile_tests/source/make_reference.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/map.cpp b/tests/compile_tests/source/map.cpp index 92d850b3f..a1d86b1ba 100644 --- a/tests/compile_tests/source/map.cpp +++ b/tests/compile_tests/source/map.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/metatable.cpp b/tests/compile_tests/source/metatable.cpp index 55e1f63a2..406f8f74e 100644 --- a/tests/compile_tests/source/metatable.cpp +++ b/tests/compile_tests/source/metatable.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/object.cpp b/tests/compile_tests/source/object.cpp index 7fef23ca1..e37baec7a 100644 --- a/tests/compile_tests/source/object.cpp +++ b/tests/compile_tests/source/object.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/object_base.cpp b/tests/compile_tests/source/object_base.cpp index bd5a436aa..e93720637 100644 --- a/tests/compile_tests/source/object_base.cpp +++ b/tests/compile_tests/source/object_base.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/optional.cpp b/tests/compile_tests/source/optional.cpp index 9d58d7703..58722e1da 100644 --- a/tests/compile_tests/source/optional.cpp +++ b/tests/compile_tests/source/optional.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/optional_implementation.cpp b/tests/compile_tests/source/optional_implementation.cpp index 14b7a8b21..a6b2e9e2b 100644 --- a/tests/compile_tests/source/optional_implementation.cpp +++ b/tests/compile_tests/source/optional_implementation.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/overload.cpp b/tests/compile_tests/source/overload.cpp index ea5d58107..e83056373 100644 --- a/tests/compile_tests/source/overload.cpp +++ b/tests/compile_tests/source/overload.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/property.cpp b/tests/compile_tests/source/property.cpp index d465f58e5..319662337 100644 --- a/tests/compile_tests/source/property.cpp +++ b/tests/compile_tests/source/property.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/protect.cpp b/tests/compile_tests/source/protect.cpp index b486767a7..2eb133241 100644 --- a/tests/compile_tests/source/protect.cpp +++ b/tests/compile_tests/source/protect.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/protected_function.cpp b/tests/compile_tests/source/protected_function.cpp index af42ff148..6f5b1617c 100644 --- a/tests/compile_tests/source/protected_function.cpp +++ b/tests/compile_tests/source/protected_function.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/protected_function_result.cpp b/tests/compile_tests/source/protected_function_result.cpp index 12d6ce6c0..7e029cb71 100644 --- a/tests/compile_tests/source/protected_function_result.cpp +++ b/tests/compile_tests/source/protected_function_result.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/protected_handler.cpp b/tests/compile_tests/source/protected_handler.cpp index d8cef055a..2f10cbf20 100644 --- a/tests/compile_tests/source/protected_handler.cpp +++ b/tests/compile_tests/source/protected_handler.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/proxy.cpp b/tests/compile_tests/source/proxy.cpp index ff50e034a..5751acc60 100644 --- a/tests/compile_tests/source/proxy.cpp +++ b/tests/compile_tests/source/proxy.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/proxy_base.cpp b/tests/compile_tests/source/proxy_base.cpp index 2febfa89b..ef4abab60 100644 --- a/tests/compile_tests/source/proxy_base.cpp +++ b/tests/compile_tests/source/proxy_base.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/raii.cpp b/tests/compile_tests/source/raii.cpp index 0a8eada30..4be116b30 100644 --- a/tests/compile_tests/source/raii.cpp +++ b/tests/compile_tests/source/raii.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/reference.cpp b/tests/compile_tests/source/reference.cpp index adbb96f78..23baaa6f9 100644 --- a/tests/compile_tests/source/reference.cpp +++ b/tests/compile_tests/source/reference.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/resolve.cpp b/tests/compile_tests/source/resolve.cpp index 9a9f0d62c..255e1eee0 100644 --- a/tests/compile_tests/source/resolve.cpp +++ b/tests/compile_tests/source/resolve.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/sol.cpp b/tests/compile_tests/source/sol.cpp index 39e586b55..8da9cb7f3 100644 --- a/tests/compile_tests/source/sol.cpp +++ b/tests/compile_tests/source/sol.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/sol_defines.hpp b/tests/compile_tests/source/sol_defines.hpp index a0557eeb9..039d95ef6 100644 --- a/tests/compile_tests/source/sol_defines.hpp +++ b/tests/compile_tests/source/sol_defines.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack.cpp b/tests/compile_tests/source/stack.cpp index e2debe2ac..d9643a3b0 100644 --- a/tests/compile_tests/source/stack.cpp +++ b/tests/compile_tests/source/stack.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_check.cpp b/tests/compile_tests/source/stack_check.cpp index 601597fe9..e4368f065 100644 --- a/tests/compile_tests/source/stack_check.cpp +++ b/tests/compile_tests/source/stack_check.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_check_get.cpp b/tests/compile_tests/source/stack_check_get.cpp index 145f4a304..d1f448515 100644 --- a/tests/compile_tests/source/stack_check_get.cpp +++ b/tests/compile_tests/source/stack_check_get.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_check_get_qualified.cpp b/tests/compile_tests/source/stack_check_get_qualified.cpp index e34dd1ca0..5da994a5a 100644 --- a/tests/compile_tests/source/stack_check_get_qualified.cpp +++ b/tests/compile_tests/source/stack_check_get_qualified.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_check_get_unqualified.cpp b/tests/compile_tests/source/stack_check_get_unqualified.cpp index fe05f2d3b..8e4f8d6a8 100644 --- a/tests/compile_tests/source/stack_check_get_unqualified.cpp +++ b/tests/compile_tests/source/stack_check_get_unqualified.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_check_qualified.cpp b/tests/compile_tests/source/stack_check_qualified.cpp index 09904c2e7..fc355d63c 100644 --- a/tests/compile_tests/source/stack_check_qualified.cpp +++ b/tests/compile_tests/source/stack_check_qualified.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_check_unqualified.cpp b/tests/compile_tests/source/stack_check_unqualified.cpp index fcf24e1f3..45d5a067c 100644 --- a/tests/compile_tests/source/stack_check_unqualified.cpp +++ b/tests/compile_tests/source/stack_check_unqualified.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_core.cpp b/tests/compile_tests/source/stack_core.cpp index fe28e75b1..7f5f32115 100644 --- a/tests/compile_tests/source/stack_core.cpp +++ b/tests/compile_tests/source/stack_core.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_field.cpp b/tests/compile_tests/source/stack_field.cpp index 5f1b3b64c..0e546080c 100644 --- a/tests/compile_tests/source/stack_field.cpp +++ b/tests/compile_tests/source/stack_field.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_get.cpp b/tests/compile_tests/source/stack_get.cpp index 1636790f8..f70ad26b5 100644 --- a/tests/compile_tests/source/stack_get.cpp +++ b/tests/compile_tests/source/stack_get.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_get_qualified.cpp b/tests/compile_tests/source/stack_get_qualified.cpp index 7fb676e16..bcb2f6225 100644 --- a/tests/compile_tests/source/stack_get_qualified.cpp +++ b/tests/compile_tests/source/stack_get_qualified.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_get_unqualified.cpp b/tests/compile_tests/source/stack_get_unqualified.cpp index fbf885270..7a706f19a 100644 --- a/tests/compile_tests/source/stack_get_unqualified.cpp +++ b/tests/compile_tests/source/stack_get_unqualified.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_guard.cpp b/tests/compile_tests/source/stack_guard.cpp index 17d2f53d5..b965ca6fe 100644 --- a/tests/compile_tests/source/stack_guard.cpp +++ b/tests/compile_tests/source/stack_guard.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_iterator.cpp b/tests/compile_tests/source/stack_iterator.cpp index e308c38e0..b49c5aea3 100644 --- a/tests/compile_tests/source/stack_iterator.cpp +++ b/tests/compile_tests/source/stack_iterator.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_pop.cpp b/tests/compile_tests/source/stack_pop.cpp index d16a02398..3d6616390 100644 --- a/tests/compile_tests/source/stack_pop.cpp +++ b/tests/compile_tests/source/stack_pop.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_probe.cpp b/tests/compile_tests/source/stack_probe.cpp index d35257b27..98ccd61f2 100644 --- a/tests/compile_tests/source/stack_probe.cpp +++ b/tests/compile_tests/source/stack_probe.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_proxy.cpp b/tests/compile_tests/source/stack_proxy.cpp index d117da8ed..f2f5665d3 100644 --- a/tests/compile_tests/source/stack_proxy.cpp +++ b/tests/compile_tests/source/stack_proxy.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_proxy_base.cpp b/tests/compile_tests/source/stack_proxy_base.cpp index e1eb72ffd..776e4a885 100644 --- a/tests/compile_tests/source/stack_proxy_base.cpp +++ b/tests/compile_tests/source/stack_proxy_base.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_push.cpp b/tests/compile_tests/source/stack_push.cpp index 1a6b9f945..03dbfc418 100644 --- a/tests/compile_tests/source/stack_push.cpp +++ b/tests/compile_tests/source/stack_push.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/stack_reference.cpp b/tests/compile_tests/source/stack_reference.cpp index 99f175713..f32f1934e 100644 --- a/tests/compile_tests/source/stack_reference.cpp +++ b/tests/compile_tests/source/stack_reference.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/state_handling.cpp b/tests/compile_tests/source/state_handling.cpp index 9c3b71e03..3969df324 100644 --- a/tests/compile_tests/source/state_handling.cpp +++ b/tests/compile_tests/source/state_handling.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/string_view.cpp b/tests/compile_tests/source/string_view.cpp index f8b422b7c..9a3d7edcb 100644 --- a/tests/compile_tests/source/string_view.cpp +++ b/tests/compile_tests/source/string_view.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/table.cpp b/tests/compile_tests/source/table.cpp index 7f889fa90..f14ed38f0 100644 --- a/tests/compile_tests/source/table.cpp +++ b/tests/compile_tests/source/table.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/table_core.cpp b/tests/compile_tests/source/table_core.cpp index 092437eda..53de30ef2 100644 --- a/tests/compile_tests/source/table_core.cpp +++ b/tests/compile_tests/source/table_core.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/table_iterator.cpp b/tests/compile_tests/source/table_iterator.cpp index 7502cf517..b6506607a 100644 --- a/tests/compile_tests/source/table_iterator.cpp +++ b/tests/compile_tests/source/table_iterator.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/thread.cpp b/tests/compile_tests/source/thread.cpp index 5da12d17a..1bb75ac63 100644 --- a/tests/compile_tests/source/thread.cpp +++ b/tests/compile_tests/source/thread.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/tie.cpp b/tests/compile_tests/source/tie.cpp index 67dd01373..ccb31ad67 100644 --- a/tests/compile_tests/source/tie.cpp +++ b/tests/compile_tests/source/tie.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/traits.cpp b/tests/compile_tests/source/traits.cpp index 697a31524..5cb238477 100644 --- a/tests/compile_tests/source/traits.cpp +++ b/tests/compile_tests/source/traits.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/trampoline.cpp b/tests/compile_tests/source/trampoline.cpp index 9700ae7fa..fa37c1be2 100644 --- a/tests/compile_tests/source/trampoline.cpp +++ b/tests/compile_tests/source/trampoline.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/tuple.cpp b/tests/compile_tests/source/tuple.cpp index 49d75f923..91c64c777 100644 --- a/tests/compile_tests/source/tuple.cpp +++ b/tests/compile_tests/source/tuple.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/types.cpp b/tests/compile_tests/source/types.cpp index 28610b5aa..81848e6fc 100644 --- a/tests/compile_tests/source/types.cpp +++ b/tests/compile_tests/source/types.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/unicode.cpp b/tests/compile_tests/source/unicode.cpp index f1d80425b..ea71bec7a 100644 --- a/tests/compile_tests/source/unicode.cpp +++ b/tests/compile_tests/source/unicode.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/unsafe_function.cpp b/tests/compile_tests/source/unsafe_function.cpp index 594501c32..02acddca5 100644 --- a/tests/compile_tests/source/unsafe_function.cpp +++ b/tests/compile_tests/source/unsafe_function.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/unsafe_function_result.cpp b/tests/compile_tests/source/unsafe_function_result.cpp index 3a23ffb5a..d71ce967a 100644 --- a/tests/compile_tests/source/unsafe_function_result.cpp +++ b/tests/compile_tests/source/unsafe_function_result.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/userdata.cpp b/tests/compile_tests/source/userdata.cpp index d01936d2d..59ba57c01 100644 --- a/tests/compile_tests/source/userdata.cpp +++ b/tests/compile_tests/source/userdata.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/usertype.cpp b/tests/compile_tests/source/usertype.cpp index ff0d8d0b3..62c721d38 100644 --- a/tests/compile_tests/source/usertype.cpp +++ b/tests/compile_tests/source/usertype.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/usertype_container.cpp b/tests/compile_tests/source/usertype_container.cpp index d150a11fe..5f5e21339 100644 --- a/tests/compile_tests/source/usertype_container.cpp +++ b/tests/compile_tests/source/usertype_container.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/usertype_container_launch.cpp b/tests/compile_tests/source/usertype_container_launch.cpp index 747121ddc..d4670be4d 100644 --- a/tests/compile_tests/source/usertype_container_launch.cpp +++ b/tests/compile_tests/source/usertype_container_launch.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/usertype_core.cpp b/tests/compile_tests/source/usertype_core.cpp index a8c2a22ad..ca86944dc 100644 --- a/tests/compile_tests/source/usertype_core.cpp +++ b/tests/compile_tests/source/usertype_core.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/usertype_proxy.cpp b/tests/compile_tests/source/usertype_proxy.cpp index 54988f301..45a882be9 100644 --- a/tests/compile_tests/source/usertype_proxy.cpp +++ b/tests/compile_tests/source/usertype_proxy.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/usertype_storage.cpp b/tests/compile_tests/source/usertype_storage.cpp index 2b25bd541..b401f1cb5 100644 --- a/tests/compile_tests/source/usertype_storage.cpp +++ b/tests/compile_tests/source/usertype_storage.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/usertype_traits.cpp b/tests/compile_tests/source/usertype_traits.cpp index 04df8ae19..2048dd94b 100644 --- a/tests/compile_tests/source/usertype_traits.cpp +++ b/tests/compile_tests/source/usertype_traits.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/variadic_args.cpp b/tests/compile_tests/source/variadic_args.cpp index a3dcfb27e..2499bfe0d 100644 --- a/tests/compile_tests/source/variadic_args.cpp +++ b/tests/compile_tests/source/variadic_args.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/variadic_results.cpp b/tests/compile_tests/source/variadic_results.cpp index 8087e8546..8030be538 100644 --- a/tests/compile_tests/source/variadic_results.cpp +++ b/tests/compile_tests/source/variadic_results.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/compile_tests/source/wrapper.cpp b/tests/compile_tests/source/wrapper.cpp index bbe51c5b7..9365fb28a 100644 --- a/tests/compile_tests/source/wrapper.cpp +++ b/tests/compile_tests/source/wrapper.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/CMakeLists.txt b/tests/runtime_tests/CMakeLists.txt index ac4ad440c..b8178c1c5 100644 --- a/tests/runtime_tests/CMakeLists.txt +++ b/tests/runtime_tests/CMakeLists.txt @@ -1,7 +1,7 @@ # # # # sol3 # The MIT License (MIT) # -# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors +# Copyright (c) 2013-2019 Rapptz, ThePhD, and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/basic.cpp b/tests/runtime_tests/source/basic.cpp index 41255a5b0..6f1212443 100644 --- a/tests/runtime_tests/source/basic.cpp +++ b/tests/runtime_tests/source/basic.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/common_classes.hpp b/tests/runtime_tests/source/common_classes.hpp index 42b8a797e..d1993df98 100644 --- a/tests/runtime_tests/source/common_classes.hpp +++ b/tests/runtime_tests/source/common_classes.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/container_semantics.cpp b/tests/runtime_tests/source/container_semantics.cpp index 6f9da7959..c952f8120 100644 --- a/tests/runtime_tests/source/container_semantics.cpp +++ b/tests/runtime_tests/source/container_semantics.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/container_semantics.custom.cpp b/tests/runtime_tests/source/container_semantics.custom.cpp index 669ce91a8..79dfb9dc6 100644 --- a/tests/runtime_tests/source/container_semantics.custom.cpp +++ b/tests/runtime_tests/source/container_semantics.custom.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/container_semantics.ordered.cpp b/tests/runtime_tests/source/container_semantics.ordered.cpp index ec55395ff..8287518fe 100644 --- a/tests/runtime_tests/source/container_semantics.ordered.cpp +++ b/tests/runtime_tests/source/container_semantics.ordered.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/container_semantics.unordered.cpp b/tests/runtime_tests/source/container_semantics.unordered.cpp index 2e1fe8556..de80cb83d 100644 --- a/tests/runtime_tests/source/container_semantics.unordered.cpp +++ b/tests/runtime_tests/source/container_semantics.unordered.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/container_shims.cpp b/tests/runtime_tests/source/container_shims.cpp index bc3d0425a..6e2d93d9c 100644 --- a/tests/runtime_tests/source/container_shims.cpp +++ b/tests/runtime_tests/source/container_shims.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/container_table.cpp b/tests/runtime_tests/source/container_table.cpp index 7941cef78..9cda226d4 100644 --- a/tests/runtime_tests/source/container_table.cpp +++ b/tests/runtime_tests/source/container_table.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/containers.cpp b/tests/runtime_tests/source/containers.cpp index c522676d9..c45e86b3a 100644 --- a/tests/runtime_tests/source/containers.cpp +++ b/tests/runtime_tests/source/containers.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/containers.roundtrip.cpp b/tests/runtime_tests/source/containers.roundtrip.cpp index dad56323a..ea2bb327a 100644 --- a/tests/runtime_tests/source/containers.roundtrip.cpp +++ b/tests/runtime_tests/source/containers.roundtrip.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/containers.table.cpp b/tests/runtime_tests/source/containers.table.cpp index 0253fb27a..933afe599 100644 --- a/tests/runtime_tests/source/containers.table.cpp +++ b/tests/runtime_tests/source/containers.table.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/coroutines.cpp b/tests/runtime_tests/source/coroutines.cpp index b010dc8db..44e59b811 100644 --- a/tests/runtime_tests/source/coroutines.cpp +++ b/tests/runtime_tests/source/coroutines.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/customizations.cpp b/tests/runtime_tests/source/customizations.cpp index fbcd0d3b3..5e61530a0 100644 --- a/tests/runtime_tests/source/customizations.cpp +++ b/tests/runtime_tests/source/customizations.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/customizations_private.cpp b/tests/runtime_tests/source/customizations_private.cpp index ac69887cc..01b5345bb 100644 --- a/tests/runtime_tests/source/customizations_private.cpp +++ b/tests/runtime_tests/source/customizations_private.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/dump.cpp b/tests/runtime_tests/source/dump.cpp new file mode 100644 index 000000000..ce6a3f5e5 --- /dev/null +++ b/tests/runtime_tests/source/dump.cpp @@ -0,0 +1,43 @@ +// sol3 + +// The MIT License (MIT) + +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors + +// Permission is hereby granted, free of charge, to any person obtaining a copy of +// this software and associated documentation files (the "Software"), to deal in +// the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do so, +// subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#include "sol_test.hpp" + +#include + +TEST_CASE("dump/dump transfer", "test that a function can be transferred from one place to another") { + sol::state lua; + sol::state lua2; + lua2.open_libraries(sol::lib::base); + + sol::load_result lr = lua.load("a = function (v) print(v) return v end"); + REQUIRE(lr.valid()); + sol::protected_function target = lr; + sol::bytecode target_bc = target.dump(); + + auto result2 = lua2.safe_script(target_bc.as_string_view(), sol::script_pass_on_error); + REQUIRE(result2.valid()); + sol::protected_function pf = lua2["a"]; + int v = pf(25557); + REQUIRE(v == 25557); +} diff --git a/tests/runtime_tests/source/environments.cpp b/tests/runtime_tests/source/environments.cpp index bc4c7045b..4e64202a1 100644 --- a/tests/runtime_tests/source/environments.cpp +++ b/tests/runtime_tests/source/environments.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/filters.cpp b/tests/runtime_tests/source/filters.cpp index 8f2780379..e1882ee23 100644 --- a/tests/runtime_tests/source/filters.cpp +++ b/tests/runtime_tests/source/filters.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/functions.cpp b/tests/runtime_tests/source/functions.cpp index 7286a351c..fa76df419 100644 --- a/tests/runtime_tests/source/functions.cpp +++ b/tests/runtime_tests/source/functions.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/gc.cpp b/tests/runtime_tests/source/gc.cpp index d8d32127e..1bbf5a928 100644 --- a/tests/runtime_tests/source/gc.cpp +++ b/tests/runtime_tests/source/gc.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/large_integer.cpp b/tests/runtime_tests/source/large_integer.cpp index b71b47238..d5d08c7f4 100644 --- a/tests/runtime_tests/source/large_integer.cpp +++ b/tests/runtime_tests/source/large_integer.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/operators.cpp b/tests/runtime_tests/source/operators.cpp index 3717c0c8b..c64483355 100644 --- a/tests/runtime_tests/source/operators.cpp +++ b/tests/runtime_tests/source/operators.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/overflow.cpp b/tests/runtime_tests/source/overflow.cpp index eb4364fa6..4418a2f13 100644 --- a/tests/runtime_tests/source/overflow.cpp +++ b/tests/runtime_tests/source/overflow.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/plain_types.cpp b/tests/runtime_tests/source/plain_types.cpp index 9b50d01a5..4fb4aa24c 100644 --- a/tests/runtime_tests/source/plain_types.cpp +++ b/tests/runtime_tests/source/plain_types.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/proxies.cpp b/tests/runtime_tests/source/proxies.cpp index 00fcd3425..7cfeb0e53 100644 --- a/tests/runtime_tests/source/proxies.cpp +++ b/tests/runtime_tests/source/proxies.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/sol_test.hpp b/tests/runtime_tests/source/sol_test.hpp index 9a53440c8..83c09ebf5 100644 --- a/tests/runtime_tests/source/sol_test.hpp +++ b/tests/runtime_tests/source/sol_test.hpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/state.cpp b/tests/runtime_tests/source/state.cpp index f756ec3a9..3e7ac0114 100644 --- a/tests/runtime_tests/source/state.cpp +++ b/tests/runtime_tests/source/state.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/storage.cpp b/tests/runtime_tests/source/storage.cpp index b8f14e509..0454fd075 100644 --- a/tests/runtime_tests/source/storage.cpp +++ b/tests/runtime_tests/source/storage.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/strings.cpp b/tests/runtime_tests/source/strings.cpp index fbede35ae..4ecb18e3c 100644 --- a/tests/runtime_tests/source/strings.cpp +++ b/tests/runtime_tests/source/strings.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/tables.cpp b/tests/runtime_tests/source/tables.cpp index 6f33d6d68..fc8d69371 100644 --- a/tests/runtime_tests/source/tables.cpp +++ b/tests/runtime_tests/source/tables.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/tables.insertion.cpp b/tests/runtime_tests/source/tables.insertion.cpp index 04f20d9de..e7e92a2c9 100644 --- a/tests/runtime_tests/source/tables.insertion.cpp +++ b/tests/runtime_tests/source/tables.insertion.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/usertypes.basic.cpp b/tests/runtime_tests/source/usertypes.basic.cpp index a35e8c9a1..857dc03dc 100644 --- a/tests/runtime_tests/source/usertypes.basic.cpp +++ b/tests/runtime_tests/source/usertypes.basic.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/usertypes.constructors.cpp b/tests/runtime_tests/source/usertypes.constructors.cpp index 532df5241..b85f165c0 100644 --- a/tests/runtime_tests/source/usertypes.constructors.cpp +++ b/tests/runtime_tests/source/usertypes.constructors.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/usertypes.cpp b/tests/runtime_tests/source/usertypes.cpp index db4304bf5..9f8c7b5ed 100644 --- a/tests/runtime_tests/source/usertypes.cpp +++ b/tests/runtime_tests/source/usertypes.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/usertypes.inheritance.cpp b/tests/runtime_tests/source/usertypes.inheritance.cpp index 723b35526..c1f20314a 100644 --- a/tests/runtime_tests/source/usertypes.inheritance.cpp +++ b/tests/runtime_tests/source/usertypes.inheritance.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/usertypes.member_variables.cpp b/tests/runtime_tests/source/usertypes.member_variables.cpp index 13c4e04b7..681dfd5e1 100644 --- a/tests/runtime_tests/source/usertypes.member_variables.cpp +++ b/tests/runtime_tests/source/usertypes.member_variables.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/usertypes.overload.cpp b/tests/runtime_tests/source/usertypes.overload.cpp index 1b3f7e801..ba6fc2e95 100644 --- a/tests/runtime_tests/source/usertypes.overload.cpp +++ b/tests/runtime_tests/source/usertypes.overload.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/usertypes.properties.cpp b/tests/runtime_tests/source/usertypes.properties.cpp index a57ea449a..89bca95c8 100644 --- a/tests/runtime_tests/source/usertypes.properties.cpp +++ b/tests/runtime_tests/source/usertypes.properties.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/usertypes.runtime.cpp b/tests/runtime_tests/source/usertypes.runtime.cpp index 9e70246e4..edb534359 100644 --- a/tests/runtime_tests/source/usertypes.runtime.cpp +++ b/tests/runtime_tests/source/usertypes.runtime.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/usertypes.unique.cpp b/tests/runtime_tests/source/usertypes.unique.cpp index f67faab38..21b0f1ad2 100644 --- a/tests/runtime_tests/source/usertypes.unique.cpp +++ b/tests/runtime_tests/source/usertypes.unique.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/utility.cpp b/tests/runtime_tests/source/utility.cpp index 87d55a444..e294a7be3 100644 --- a/tests/runtime_tests/source/utility.cpp +++ b/tests/runtime_tests/source/utility.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in diff --git a/tests/runtime_tests/source/variadics.cpp b/tests/runtime_tests/source/variadics.cpp index 10b523737..7750e2bc0 100644 --- a/tests/runtime_tests/source/variadics.cpp +++ b/tests/runtime_tests/source/variadics.cpp @@ -2,7 +2,7 @@ // The MIT License (MIT) -// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors +// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in