summaryrefslogtreecommitdiff
path: root/examples/userdata.rs
diff options
context:
space:
mode:
authorPeter Marheine <peter@taricorp.net>2023-12-06 21:16:52 +1100
committerPeter Marheine <peter@taricorp.net>2023-12-06 21:16:52 +1100
commite3f34f319cc9eb5cc4f87074a313f98c1dff70ca (patch)
treeafa41f36dbc512a19a8d06d1f829f31754b75314 /examples/userdata.rs
parentb16f3895a0d14b1ef80c9c0f07b97f990f124c32 (diff)
downloadmlua-e3f34f319cc9eb5cc4f87074a313f98c1dff70ca.zip
Correct C return type for lua_error
The definition of lua_error in all of Lua 5.1 through 5.4 says lua_error returns int, but the Rust definition of the same function treats it as void (because it's known not to return). This causes link-time errors when building for wasm targets because the wasm linker is aware of function return types and errors out if they differ between definition and declaration.
Diffstat (limited to 'examples/userdata.rs')
0 files changed, 0 insertions, 0 deletions