From b56d4e570a60a8e84df8288c3122eb5bb5c20af6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 14 Mar 2019 15:30:54 -0300 Subject: Changes in the warning system - The warning functions get an extra parameter that tells whether message is to be continued (instead of using end-of-lines as a signal). - The user data for the warning function is a regular value, instead of a writable slot inside the Lua state. --- lua.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua.h') diff --git a/lua.h b/lua.h index b777624e..09611db5 100644 --- a/lua.h +++ b/lua.h @@ -128,7 +128,7 @@ typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); /* ** Type for warning functions */ -typedef void (*lua_WarnFunction) (void **pud, const char *msg); +typedef void (*lua_WarnFunction) (void *ud, const char *msg, int tocont); @@ -309,7 +309,7 @@ LUA_API int (lua_isyieldable) (lua_State *L); ** Warning-related functions */ LUA_API void (lua_setwarnf) (lua_State *L, lua_WarnFunction f, void *ud); -LUA_API void (lua_warning) (lua_State *L, const char *msg); +LUA_API void (lua_warning) (lua_State *L, const char *msg, int tocont); /* -- cgit v1.2.3-55-g6feb