comparison Core/Lua/LuaFunctionCall.cpp @ 1010:160dfe770618 lua-scripting

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Jul 2014 17:05:00 +0200
parents 1b1d51e9f1a2
children 92f4bf2c5d73
comparison
equal deleted inserted replaced
1009:26642cecd36d 1010:160dfe770618
264 } 264 }
265 else if (lua_isstring(lua, top)) 265 else if (lua_isstring(lua, top))
266 { 266 {
267 result = std::string(lua_tostring(lua, top)); 267 result = std::string(lua_tostring(lua, top));
268 } 268 }
269 else if (lua_isboolean(lua, top))
270 {
271 result = static_cast<bool>(lua_toboolean(lua, top));
272 }
269 else 273 else
270 { 274 {
271 LOG(WARNING) << "Unsupported Lua type when returning Json"; 275 LOG(WARNING) << "Unsupported Lua type when returning Json";
272 result = Json::nullValue; 276 result = Json::nullValue;
273 } 277 }