engine: throw an exception if lua cannot be opened

This commit is contained in:
Riccardo Schirone
2017-02-22 14:16:16 +01:00
parent 38f562ea89
commit c12ab700ec

View File

@@ -24,6 +24,10 @@ along with falco. If not, see <http://www.gnu.org/licenses/>.
falco_common::falco_common()
{
m_ls = lua_open();
if(!m_ls)
{
throw falco_exception("Cannot open lua");
}
luaL_openlibs(m_ls);
}