lua_lsup.h 490 B

123456789101112131415161718192021
  1. #include <lua.h>
  2. #include <lauxlib.h>
  3. #include "lsup_rdf.h"
  4. #ifndef _LUA_LSUP_H
  5. #define _LUA_LSUP_H
  6. /// Raise Lua error including LSUP error message on negative rc.
  7. #define LUA_PCHECK(exp, message) do {\
  8. if ((exp) < LSUP_OK) \
  9. return luaL_error (L, "%s: %s", message, LSUP_strerror (exp)); \
  10. } while (0)
  11. /// Create new namespace map.
  12. int l_nsmap_new (lua_State *L);
  13. /// Allocate space for a term object.
  14. ///LSUP_Term **allocate_term (lua_State *L);
  15. #endif // _LUA_LSUP_H