Repository navigation
Release 0.3.2
Native library for hosting the SLua runtime: slua_shim for Windows x64 and Linux x64. The package
built from these files carries no managed code; the host binds to the C interface in slua_shim.h.
- Runtime pin: 9dae328 (the commit of the SLua tree the libraries are built against)
- API version: 5 (a host must check
slua_api_version()for an exact match) - Saved-state stamp format:
runtime=<pin> api=<n>;slua_versionreturns the same text,
hereruntime=9dae3285f6 api=5 - Built from commit: fef0cc6
Every file was built or copied by one CI run from that commit. SHA256SUMS.txt lists the SHA-256 of
every other file in the release (check with sha256sum -c SHA256SUMS.txt).
| File | Contents |
|---|---|
slua-native-win-x64-0.3.2.zip |
slua_shim.dll |
slua-native-linux-x64-0.3.2.tar.gz |
libslua_shim.so, built on Ubuntu 22.04 |
slua_shim.h |
the C interface |
THIRD-PARTY-NOTICES.txt, licenses.zip |
licences of everything linked into the libraries |
What changed since 0.3.1 (API version unchanged at 5)
The exports, their signatures and the API version are the same as in 0.3.1, with one addition: the export slua_restore_note. A host that needs API version 5 loads this library as it loaded the last one, and a host that does not look up the new export is not affected.
- A saved script state no longer fails to restore when the host binds more functions than it did when the state was saved. The state header (format version 2) now lists the host functions the state holds, so a restore is refused, with the function's name, only when the state holds a function this build no longer provides or binds it the other way (plain or pausing). Before, any change to the hash of the whole list of bound functions refused the state and the script started fresh.
- A state written by 0.3.1 (format version 1) is still read. It carries only the hash of the list, so it restores when the list is the same; when the list has changed it restores unless it mentions a function that this build binds as pausing, and if the Executor cannot rebuild it the script starts fresh and the note says the list had changed.
- New export
slua_restore_notecopies the reason the lastslua_restoreof a script refused its state into a buffer, so a host can show why a state was set aside and offer to try it again. A library without it answers an entry-point error, which a host treats as no reason given.