summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-09-10 15:11:00 -0400
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-09-10 15:11:02 -0400
commit53df4f447db0408d00bdcbee3105e013bdd19c3a (patch)
tree0ccccacae81b902088f16cf704345fa53b3b252b /src/frontend
parente52c9cc290a710c11fef4a08c715e46d04db9f07 (diff)
Use std::forward_list for breakpoint and registerpoint lists (nw)
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/mame/luaengine.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp
index 5412f182304..7b45fd92c59 100644
--- a/src/frontend/mame/luaengine.cpp
+++ b/src/frontend/mame/luaengine.cpp
@@ -1479,16 +1479,14 @@ void lua_engine::initialize()
"bpclr", &device_debug::breakpoint_clear,
"bplist", [this](device_debug &dev) {
sol::table table = sol().create_table();
- device_debug::breakpoint *list = dev.breakpoint_first();
- while(list)
+ for(const device_debug::breakpoint &bpt : dev.breakpoint_list())
{
sol::table bp = sol().create_table();
- bp["enabled"] = list->enabled();
- bp["address"] = list->address();
- bp["condition"] = list->condition();
- bp["action"] = list->action();
- table[list->index()] = bp;
- list = list->next();
+ bp["enabled"] = bpt.enabled();
+ bp["address"] = bpt.address();
+ bp["condition"] = bpt.condition();
+ bp["action"] = bpt.action();
+ table[bpt.index()] = bp;
}
return table;
},