Skip to content

sco_api.has

1 if the capability is available on this game build, else 0.

int (*)(const char *)

Service index

Property Value
Symbol sco_api.has
Record ID sco-api-has
Service sco_api
Table sco_api
Version macro SCO_API_MAJOR/SCO_API_MINOR
Packed table version 65537
Since / availability size >= 24; 1.0
Complete member extent (x64 bytes) 24
Table size (x64 bytes) 128

Header source

int (*has)(const char* capability);
1 if the capability is available on this game build, else 0.

1 available; 0 absent/unknown/NULL name. No result/error channel.

1 available; 0 absent/unknown/NULL name.

Capability string borrowed during call; no allocation transfer; fixed registry lookup.

Any thread; reentrancy unspecified.

unspecified

unspecified

No cancellation entrypoint; synchronous unless noted.

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/sco_api.h
(*has)
cpp typed-wrapper include/scosdk/plugin.hpp
bool Has(const char* capability) const noexcept { return api_ && capability && api_->has(capability) != 0; }
csharp typed-wrapper sdk/csharp/Sco.Sdk/Plugin.cs
fixed (byte* c = Utf8.Z(capability)) return a->has(c) != 0;
lua typed-wrapper plugins/lua/sco_lua.c
lua_pushboolean(L, Of(L)->api->has(luaL_checkstring(L, 1)) != 0);

ABI pins prove layout, not semantic behavior or a live game session.