#include <ebpttree.h>
#include <common/cfgparse.h>
-#include <common/compiler.h>
#include <common/xref.h>
#include <common/hathreads.h>
* MAY_LJMP() marks an lua function that may use longjmp.
*/
#define __LJMP
-#define WILL_LJMP(func) do { func; __unreachable(); } while (0)
+#define WILL_LJMP(func) func
#define MAY_LJMP(func) func
/* This couple of function executes securely some Lua calls outside of
return 2;
}
- appctx = __objt_appctx(s->si[0].end);
+ appctx = objt_appctx(s->si[0].end);
/* Check for connection established. */
if (appctx->ctx.hlua_cosocket.connected) {
}
hlua = hlua_gethlua(L);
- appctx = __objt_appctx(s->si[0].end);
+ appctx = objt_appctx(s->si[0].end);
/* inform the stream that we want to be notified whenever the
* connection completes.
WILL_LJMP(luaL_error(L, "Lua out of memory error."));
task = task_new(MAX_THREADS_MASK);
- if (!task)
- WILL_LJMP(luaL_error(L, "Lua out of memory error."));
-
task->context = hlua;
task->process = hlua_process_task;