From 6cbf92d30fe7eb24fa5e2a93bfe432c081a7e51f Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 4 Feb 2018 19:01:15 -0800 Subject: README.md: Document extra arg of luaL_execresult and luaL_fileresult --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 458269a..959b4f8 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,8 @@ In the browser `require` and `package.loadlib` try to find a file by making sync ### _Differences_ from C API - `lua_tointegerx` and `lua_tonumberx` do not have out-parameters indicating conversion success. Instead, ``false`` is returned when conversion fails. +- `luaL_execresult` takes an extra argument: an error object. The error object should have a fields `status`, `signal` and `errno`. +- `luaL_fileresult` takes an extra argument: an error object. The error object should have a field `errno`. ## Extensions -- cgit v1.2.3-70-g09d2