Expose abs_index function from blua

This commit is contained in:
indev committed 2023-07-16 14:38:50 +03:00
1 parent 7ba890d8be
commit 045f3af141
2 files changed
+5 -5

No files matched your search

-5
View File
@@ -28,11 +28,6 @@
#define FREELIST_REF 0 /* free list of references */
/* convert a stack index to positive */
#define abs_index(L, i) ((i) > 0 || (i) <= LUA_REGISTRYINDEX ? (i) : \
lua_gettop(L) + (i) + 1)
/*
** {======================================================
** Error-report functions
+5
View File
@@ -27,6 +27,11 @@ LUALIB_API void (luaL_setn) (lua_State *L, int t, int n);
#define luaI_openlib luaL_openlib
#endif
/* convert a stack index to positive */
#define abs_index(L, i) ((i) > 0 || (i) <= LUA_REGISTRYINDEX ? (i) : \
lua_gettop(L) + (i) + 1)
/* extra error code for `luaL_load' */
#define LUA_ERRFILE (LUA_ERRERR+1)