diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-03-14 15:30:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-03-14 15:30:54 -0300 |
commit | b56d4e570a60a8e84df8288c3122eb5bb5c20af6 (patch) | |
tree | d5597a7865712fc407adbb41fe0749e728617ca7 /lua.h | |
parent | 9eca305e75010e30342486a4139846faf1b3eccb (diff) | |
download | lua-b56d4e570a60a8e84df8288c3122eb5bb5c20af6.tar.gz lua-b56d4e570a60a8e84df8288c3122eb5bb5c20af6.tar.bz2 lua-b56d4e570a60a8e84df8288c3122eb5bb5c20af6.zip |
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.
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -128,7 +128,7 @@ typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); | |||
128 | /* | 128 | /* |
129 | ** Type for warning functions | 129 | ** Type for warning functions |
130 | */ | 130 | */ |
131 | typedef void (*lua_WarnFunction) (void **pud, const char *msg); | 131 | typedef void (*lua_WarnFunction) (void *ud, const char *msg, int tocont); |
132 | 132 | ||
133 | 133 | ||
134 | 134 | ||
@@ -309,7 +309,7 @@ LUA_API int (lua_isyieldable) (lua_State *L); | |||
309 | ** Warning-related functions | 309 | ** Warning-related functions |
310 | */ | 310 | */ |
311 | LUA_API void (lua_setwarnf) (lua_State *L, lua_WarnFunction f, void *ud); | 311 | LUA_API void (lua_setwarnf) (lua_State *L, lua_WarnFunction f, void *ud); |
312 | LUA_API void (lua_warning) (lua_State *L, const char *msg); | 312 | LUA_API void (lua_warning) (lua_State *L, const char *msg, int tocont); |
313 | 313 | ||
314 | 314 | ||
315 | /* | 315 | /* |