diff options
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -409,3 +409,10 @@ LUA_API void lua_close (lua_State *L) { | |||
409 | } | 409 | } |
410 | 410 | ||
411 | 411 | ||
412 | void luaE_warning (lua_State *L, const char *msg) { | ||
413 | lua_WarnFunction wf = G(L)->warnf; | ||
414 | if (wf != NULL) | ||
415 | wf(&G(L)->ud_warn, msg); | ||
416 | } | ||
417 | |||
418 | |||