diff options
author | Remko Tronçon <git@el-tramo.be> | 2014-05-18 09:49:13 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2014-05-18 15:49:19 (GMT) |
commit | fa8fd85f5c451648bb7cfbe275db19efa921d850 (patch) | |
tree | 54adc28feceef0f674fb69088effbb975e76cc1a /Sluift/ElementConvertors | |
parent | 1165b03c019a2207dc58a2070b1d5ff5833b8093 (diff) | |
download | swift-contrib-fa8fd85f5c451648bb7cfbe275db19efa921d850.zip swift-contrib-fa8fd85f5c451648bb7cfbe275db19efa921d850.tar.bz2 |
Sluift: Add assertions on conversion
Change-Id: I641380fe7423af7b2c7be992f59244a57fb24b51
Diffstat (limited to 'Sluift/ElementConvertors')
-rw-r--r-- | Sluift/ElementConvertors/CommandConvertor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Sluift/ElementConvertors/CommandConvertor.cpp b/Sluift/ElementConvertors/CommandConvertor.cpp index 7fb7b22..9a2aa5f 100644 --- a/Sluift/ElementConvertors/CommandConvertor.cpp +++ b/Sluift/ElementConvertors/CommandConvertor.cpp @@ -189,7 +189,8 @@ void CommandConvertor::doConvertToLua(lua_State* L, boost::shared_ptr<Command> p Lua::pushValue(L, result); if (payload->getForm()) { - convertors->convertToLuaUntyped(L, payload->getForm()); + bool result = convertors->convertToLuaUntyped(L, payload->getForm()); + assert(result); lua_setfield(L, -2, "form"); } } |