mame/3rdparty/sol2/sol
feos d51d2a71d5 luaengine: reduce memory usage during compilation
Previous semantics were encouraged by sol2, and ThePhD admitted it was a bad idea for usertypes with lots of members. sol3 allows to assign members outside a constructor for regular usertypes, but mame can't move to sol3 because it requires C++17. Turns out sol2 also has a way to add members separately, and that is what I used. This helps immensely.

This approach required a fix to warning C5046 copied from here 5799084572

Tested current mame plugins, everything seems to work.

PS: Due to come black magic, if I use simple_usertype::set() with "manager" as well, "machine" member dies (others are fine!), so I had to leave it intact.
2019-10-19 11:37:01 +03:00
..
compatibility Update sol2 (nw) 2017-02-05 16:06:06 +01:00
as_args.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
bind_traits.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
call.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
compatibility.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
container_usertype_metatable.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
coroutine.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
debug.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
demangle.hpp luaengine: use initializers (nw) 2016-11-15 22:21:07 -06:00
deprecate.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
error.hpp Updated sol2, made lua console not crash for nil data (nw) 2016-11-06 10:05:36 +01:00
function_result.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
function_types_core.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
function_types_overloaded.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
function_types_stateful.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
function_types_stateless.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
function_types_templated.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
function_types.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
function.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
in_place.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
inheritance.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
load_result.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
object.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
optional_implementation.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
optional.hpp Updated sol2, made lua console not crash for nil data (nw) 2016-11-06 10:05:36 +01:00
overload.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
property.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
protect.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
protected_function_result.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
protected_function.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
proxy_base.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
proxy.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
raii.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
reference.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
resolve.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
simple_usertype_metatable.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
stack_check_get.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
stack_check.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
stack_core.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
stack_field.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
stack_get.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
stack_guard.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
stack_pop.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
stack_probe.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
stack_proxy.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
stack_push.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
stack_reference.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
stack.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
state_view.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
state.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
string_shim.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
table_core.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
table_iterator.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
table.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
thread.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
tie.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
traits.hpp luaengine: reduce memory usage during compilation 2019-10-19 11:37:01 +03:00
tuple.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
types.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
userdata.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
usertype_metatable.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
usertype_traits.hpp luaengine: use initializers (nw) 2016-11-15 22:21:07 -06:00
usertype.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00
variadic_args.hpp Update sol2 (nw) 2017-02-05 16:06:06 +01:00
wrapper.hpp Added sol2 header only library as future replacement for luabridge (nw) 2016-10-07 14:43:09 +02:00