diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-12 14:52:14 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-15 18:56:25 +1000 |
commit | 4a0aa6eecf10432453c22031c247cf24819f1040 (patch) | |
tree | 542bf773168d6af2069a91125447801a5576d2c6 /README.md | |
parent | 424a3604dd90a40773e3434450bb5cb685962926 (diff) | |
download | fengari-4a0aa6eecf10432453c22031c247cf24819f1040.tar.gz fengari-4a0aa6eecf10432453c22031c247cf24819f1040.tar.bz2 fengari-4a0aa6eecf10432453c22031c247cf24819f1040.zip |
Add facility for a user provided (state-global) native error handler
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -106,6 +106,12 @@ Alias for `lua_pushcfunction`. Alias for `lua_pushcclosure`. +### `lua_atnativeerror(L, func)` + +Sets a function to be called if a native JavaScript error is thrown across a lua pcall. +The function will be run as if it were a message handler (see https://www.lua.org/manual/5.3/manual.html#2.3). + + ### `b = lua_isproxy(p, L)` Returns a boolean `b` indicating whether `p` is a proxy (See `lua_toproxy`). |