disable exeptions in cmake
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
namespace luabridge {
|
||||
@@ -320,7 +321,8 @@ public:
|
||||
lua_rawgetp (L, LUA_REGISTRYINDEX, ClassInfo <T>::getClassKey ());
|
||||
if (!lua_istable (L, -1))
|
||||
{
|
||||
throw std::logic_error ("The class is not registered in LuaBridge");
|
||||
std::cerr << ("The class is not registered in LuaBridge");
|
||||
assert(true);
|
||||
}
|
||||
lua_setmetatable (L, -2);
|
||||
return ud;
|
||||
@@ -375,7 +377,8 @@ private:
|
||||
lua_rawgetp (L, LUA_REGISTRYINDEX, key);
|
||||
if (!lua_istable (L, -1))
|
||||
{
|
||||
throw std::logic_error ("The class is not registered in LuaBridge");
|
||||
std::cerr << ("The class is not registered in LuaBridge");
|
||||
assert(true);
|
||||
}
|
||||
lua_setmetatable (L, -2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user