Commit eafa3ae2 authored by Marek Vavruša's avatar Marek Vavruša

lib+daemon: annotated lua_error() for static checkers

parent 9f87b7b4
......@@ -21,6 +21,9 @@
#include "daemon/bindings.h"
#include "daemon/worker.h"
/** @internal Annotate for static checkers. */
KR_NORETURN int lua_error (lua_State *L);
/** @internal Prefix error with file:line */
static int format_error(lua_State* L, const char *err)
{
......
......@@ -37,6 +37,9 @@
#define lua_rawlen(L, obj) lua_objlen((L), (obj))
#endif
/** @internal Annotate for static checkers. */
KR_NORETURN int lua_error (lua_State *L);
/*
* Global bindings.
*/
......
......@@ -26,10 +26,12 @@
#define KR_EXPORT __attribute__ ((visibility ("default")))
#define KR_CONST __attribute__((__const__))
#define KR_PURE __attribute__((__pure__))
#define KR_NORETURN __attribute__((__noreturn__))
#else
#define KR_EXPORT
#define KR_CONST
#define KR_PURE
#define KR_NORETURN
#endif
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment