sc_world_v1.last_error
The reason for the last failed call of any plugin (“” if none), NUL-terminated, with the size handshake (*inout_size: capacity in; bytes written, or needed with SCO_TOO_MANY, out). The queries keep no per-plugin state, so self is only checked: NULL or a loaded plugin’s handle (anything else is SCO_BAD_ARG). Any thread.
Signature
Section titled “Signature”sco_result (*)(sco_plugin *, char *, uint32_t *)Service and availability
Section titled “Service and availability”| Property | Value |
|---|---|
| Symbol | sc_world_v1.last_error |
| Record ID | sc-world-v1-last-error |
| Service | game.world |
| Table | sc_world_v1 |
| Version macro | SC_WORLD_VERSION_1_1 |
| Packed table version | 65537 |
| Since / availability | size >= 32; 1.0 |
| Complete member extent (x64 bytes) | 32 |
| Table size (x64 bytes) | 40 |
Parameters and buffers
Section titled “Parameters and buffers”sco_result (*last_error)(sco_plugin* self, char* out, uint32_t* inout_size);
The reason for the last failed call of any plugin (“” if none), NUL-terminated, with the size handshake (*inout_size: capacity in; bytes written, or needed with SCO_TOO_MANY, out). The queries keep no per-plugin state, so self is only checked: NULL or a loaded plugin’s handle (anything else is SCO_BAD_ARG). Any thread.
Results and failures
Section titled “Results and failures”BAD_ARG invalid/released non-NULL self or buffer; TOO_MANY required bytes. Shared error across all query callers; stopped-service refusal unspecified (no started check).
Absent capability
Section titled “Absent capability”unspecified
Ownership
Section titled “Ownership”Caller buffers; no allocation crosses boundary; queries do not own entities. Internal allocation unspecified.
Thread affinity
Section titled “Thread affinity”Any thread; diagnostic scope as described; recursive reentrancy unspecified.
Callback context
Section titled “Callback context”unspecified
Reentrancy
Section titled “Reentrancy”unspecified
Cleanup and cancellation
Section titled “Cleanup and cancellation”No cancellation entrypoint; synchronous query.
Language mappings
Section titled “Language mappings”Status labels are copied verbatim from the catalogue: direct is native access; typed-wrapper is wrapper-backed; restricted is a subset/adaptation; unsupported means no supported route is established. No status implies universal safety.
| Language | Catalogue status | Source evidence / wrapper tokens |
|---|---|---|
| c | direct | include/sc_world.h(*last_error) |
| cpp | typed-wrapper | include/scosdk/game/world.hppsco_result r = t_->last_error(self_, s.data(), &size); |
| csharp | typed-wrapper | sdk/csharp/Sco.Sdk/Game/World.csreturn Storage.Sized((buf, size) => ((ScWorldV1*)t)->last_error((void*)self, buf, size), out byte[] b) == ScoResult.Ok |
| lua | restricted | plugins/lua/sco_lua_game.cif (GAME_MEMBER(w, sc_world_v1, last_error) && w->last_error(NULL, msg, &size) == SCO_OK && msg[0]) { lua_pushstring(L, msg); return 3; } |
Examples
Section titled “Examples”None identified in the catalogue; this is not proof none can exist.
- tests/abi_game_world.c
- tests/test_app.cpp
- tests/test_lua.cpp
- tests/test_sdk.cpp
- sdk/csharp/Sco.Sdk.Tests/GameFakeHost.cs
- tools/test.sh
- sdk/csharp/Sco.Sdk.Tests/GameLayout.cs
ABI pins prove layout, not semantic behavior or a live game session.