Skip to content
Snippets Groups Projects
Commit b1caf5ec authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Fix ObjC Clang build broken by 13054aaa

parent 82c5b4b4
No related branches found
No related tags found
No related merge requests found
......@@ -977,7 +977,11 @@ port_lua_add_tuple(struct port *port, struct tuple *tuple,
lua_State *L = port_lua(port)->L;
@try {
lbox_pushtuple(L, tuple);
#if defined(__clang__)
} @catch (...) {
#else /* defined(__clang__) */
} @catch (id allOthers) {
#endif
tnt_raise(ClientError, :ER_PROC_LUA, lua_tostring(L, -1));
}
}
......@@ -1316,7 +1320,11 @@ box_lua_execute(struct request *request, struct port *port)
port_add_lua_multret(port, L);
} @catch (tnt_Exception *e) {
@throw;
#if defined(__clang__)
} @catch (...) {
#else /* !defined(__clang__) */
} @catch (id allOthers) {
#endif
tnt_raise(ClientError, :ER_PROC_LUA, lua_tostring(L, -1));
} @finally {
/*
......
......@@ -510,7 +510,11 @@ box_lua_fiber_run(va_list ap __attribute__((unused)))
/* The fiber is detached, log the error. */
[e log];
}
#if defined(__clang__)
} @catch (...) {
#else /* !defined(__clang__) */
} @catch (id allOthers) {
#endif
lua_settop(L, 1);
/*
* The error message is already there.
......@@ -972,7 +976,11 @@ lbox_pcall(struct lua_State *L)
lua_pushstring(L, e->errmsg);
} @catch (tnt_Exception *e) {
@throw;
#if defined(__clang__)
} @catch (...) {
#else /* !defined(__clang__) */
} @catch (id allOthers) {
#endif
lua_settop(L, 1);
/* completion status */
lua_pushboolean(L, false);
......@@ -1112,7 +1120,11 @@ tarantool_lua_dostring(struct lua_State *L, const char *str)
} @catch (tnt_Exception *e) {
lua_pushstring(L, [e errmsg]);
return 1;
#if defined(__clang__)
} @catch (...) {
#else /* !defined(__clang__) */
} @catch (id allOthers) {
#endif
return 1;
}
return 0;
......
......@@ -114,7 +114,11 @@ lbox_session_run_trigger(void *param)
lua_call(L, 0, 0);
} @catch (tnt_Exception *e) {
@throw;
#if defined(__clang__)
} @catch (...) {
#else /* !defined(__clang__) */
} @catch ( id allOthers ) {
#endif
tnt_raise(ClientError, :ER_PROC_LUA,
lua_tostring(L, -1));
} @finally {
......
......@@ -8,7 +8,11 @@ int main()
luaL_openlibs(L);
@try {
luaL_error(L, "test");
#if defined(__clang__)
} @catch (...) {
#else /* !defined(__clang__) */
} @catch (id allOthers) {
#endif
printf("exception handled\n");
}
lua_close(L);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment