summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/luaengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/luaengine.cpp')
-rw-r--r--src/frontend/mame/luaengine.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp
index 82e3f3f50ad..610b1947210 100644
--- a/src/frontend/mame/luaengine.cpp
+++ b/src/frontend/mame/luaengine.cpp
@@ -923,7 +923,7 @@ void lua_engine::initialize()
*/
emu.new_usertype<context>("thread", sol::call_constructor, sol::constructors<sol::types<>>(),
- "start", [this](context &ctx, const char *scr) {
+ "start", [](context &ctx, const char *scr) {
std::string script(scr);
if(ctx.busy)
return false;
@@ -962,13 +962,13 @@ void lua_engine::initialize()
th.detach();
return true;
},
- "continue", [this](context &ctx, const char *val) {
+ "continue", [](context &ctx, const char *val) {
if(!ctx.yield)
return;
ctx.result = val;
ctx.sync.notify_all();
},
- "result", sol::property([this](context &ctx) -> std::string {
+ "result", sol::property([](context &ctx) -> std::string {
if(ctx.busy && !ctx.yield)
return "";
return ctx.result;
@@ -1008,7 +1008,7 @@ void lua_engine::initialize()
}
return sol::make_object(sol(), ret);
},
- "read_block", [this](save_item &item, int offset, sol::buffer *buff) {
+ "read_block", [](save_item &item, int offset, sol::buffer *buff) {
if(!item.base || ((offset + buff->get_len()) > (item.size * item.count)))
buff->set_len(0);
else
@@ -1267,7 +1267,7 @@ void lua_engine::initialize()
* debug:wplist(space)[] - table of watchpoints
*/
sol().registry().new_usertype<device_debug>("device_debug", "new", sol::no_constructor,
- "step", [this](device_debug &dev, sol::object num) {
+ "step", [](device_debug &dev, sol::object num) {
int steps = 1;
if(num.is<int>())
steps = num.as<int>();