Removing SOL_CHECK_ARGUMENTS till we figure all consequences (nw)

This commit is contained in:
Miodrag Milanovic 2016-11-06 15:06:26 +01:00
parent 2027d59e7f
commit 8d7434ab5e
2 changed files with 2 additions and 2 deletions

View File

@ -1612,7 +1612,7 @@ void lua_engine::initialize()
sol().new_usertype<mame_machine_manager>("manager", "new", sol::no_constructor,
"machine", &machine_manager::machine,
"options", [](machine_manager &m) { return static_cast<core_options *>(&m.options()); },
"options", [](mame_machine_manager &m) { return static_cast<core_options *>(&m.options()); },
"plugins", [](mame_machine_manager &m) { return static_cast<core_options *>(&m.plugins()); },
"ui", &mame_machine_manager::ui);
sol()["manager"] = std::ref(*mame_machine_manager::instance());

View File

@ -19,7 +19,7 @@
#include <map>
#define SOL_SAFE_USERTYPE
#define SOL_CHECK_ARGUMENTS
//#define SOL_CHECK_ARGUMENTS
#include "sol2/sol.hpp"
class cheat_manager;