diff options
author | 2016-04-27 08:13:59 +0200 | |
---|---|---|
committer | 2016-04-27 08:13:59 +0200 | |
commit | cfee536f22f032c7ead65075f73cc6fd8549e68b (patch) | |
tree | f4b4703dd0295571684456c19668f508b3ddcb3a /src/frontend/mame/luaengine.cpp | |
parent | be8159d01eaa7533e7758bf07384501dbc6214f3 (diff) |
Cleanups and version bumpmame0173
Diffstat (limited to 'src/frontend/mame/luaengine.cpp')
-rw-r--r-- | src/frontend/mame/luaengine.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp index 72c36e3bd47..2d5d458bfff 100644 --- a/src/frontend/mame/luaengine.cpp +++ b/src/frontend/mame/luaengine.cpp @@ -1469,7 +1469,7 @@ int lua_engine::lua_screen::l_draw_line(lua_State *L) //------------------------------------------------- // draw_text - draw text on a screen container -// if x is a position, then y is a pixel position, otherwise x and y are screen size relative +// if x is a position, then y is a pixel position, otherwise x and y are screen size relative // -> manager:machine().screens[":screen"]:draw_text(x, y, message) //------------------------------------------------- @@ -2093,26 +2093,26 @@ int lua_engine::lua_machine::l_logerror(lua_State *L) std::string lua_engine::get_print_buffer(lua_State *L) { - int nargs = lua_gettop(L); - - const std::string sep = " "; - - std::ostringstream ss; - bool first = true; - - for (int i = 1; i <= nargs; i++) { - const char* c = lua_tostring(L, i); - const std::string str = c ? c : "<nil>"; - if (first) first = false; - else ss << sep; - ss << str; - } + int nargs = lua_gettop(L); + + const std::string sep = " "; + + std::ostringstream ss; + bool first = true; + + for (int i = 1; i <= nargs; i++) { + const char* c = lua_tostring(L, i); + const std::string str = c ? c : "<nil>"; + if (first) first = false; + else ss << sep; + ss << str; + } return ss.str(); } int lua_engine::l_osd_printf_verbose(lua_State *L) { - osd_printf_verbose("%s\n",get_print_buffer(L).c_str()); + osd_printf_verbose("%s\n",get_print_buffer(L).c_str()); return 0; } |