From cfd2e9b39db28b2d7efc1bbd46a258d08f35229a Mon Sep 17 00:00:00 2001 From: Ilia Udalov Date: Mon, 12 Jun 2017 14:51:44 +0300 Subject: [PATCH] Fix sode style --- src/cpp/lua-helpers.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/cpp/lua-helpers.cpp b/src/cpp/lua-helpers.cpp index e1fa9f5..a5cc08e 100644 --- a/src/cpp/lua-helpers.cpp +++ b/src/cpp/lua-helpers.cpp @@ -2,13 +2,10 @@ namespace effil { -namespace -{ +namespace { -std::string luaError(int errCode) -{ - switch(errCode) - { +std::string luaError(int errCode) { + switch(errCode) { case LUA_ERRSYNTAX: return "Invalid syntax (LUA_ERRSYNTAX)"; case LUA_ERRMEM: return "Memory allocation error (LUA_ERRMEM)"; case LUA_ERRRUN: return "Execution error (LUA_ERRRUN)"; @@ -29,7 +26,7 @@ int dumpMemoryWriter(lua_State*, const void* batch, size_t batchSize, void* stor return 0; } -} +} // namespacce std::string dumpFunction(const sol::function& f) { sol::state_view lua(f.lua_state());