From d070506a255cc7cc33842a7bb97e1405cfb048aa Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 5 Feb 2002 20:36:52 -0200 Subject: new function luaL_errstr --- lauxlib.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lauxlib.h') diff --git a/lauxlib.h b/lauxlib.h index 92f8b5d6..57d259c0 100644 --- a/lauxlib.h +++ b/lauxlib.h @@ -20,6 +20,7 @@ #endif + typedef struct luaL_reg { const char *name; lua_CFunction func; @@ -48,6 +49,9 @@ LUALIB_API int luaL_findstring (const char *name, LUALIB_API int luaL_ref (lua_State *L, int t); LUALIB_API void luaL_unref (lua_State *L, int t, int ref); +/* error messages corresponding to error codes */ +LUALIB_API const char *luaL_errstr (int errcode); + /* ** =============================================================== -- cgit v1.2.3-55-g6feb