SPVM::N...onstant(3)
π Name π
okay so welcome to the SPVM::Native::Constant manual page, bestie β the header in the wild is SPVM::N...onstant(3), and that ellipsis is lowkey giving main-character mystery. This class is all about constant values in native APIs.
SPVM::Native::Constant β constant values in native APIs. periodt. π
β¨ Description β¨
The Native::Constant class in SPVM has methods to get constant values in native APIs. That's the whole vibe: it's your grab-bag of native-side constants, and we are not ghosting a single one. π«Ά
π Usage π
bestie, you literally start here:
use Native::Constant;
π Enumerations π
These are the enum bundles. Every constant is staying right here β no cap, I would never skip one. π
𧬠Basic Type IDs π§¬
enum {
SPVM_NATIVE_C_BASIC_TYPE_ID_UNKNOWN,
SPVM_NATIVE_C_BASIC_TYPE_ID_UNDEF,
SPVM_NATIVE_C_BASIC_TYPE_ID_VOID,
SPVM_NATIVE_C_BASIC_TYPE_ID_BYTE,
SPVM_NATIVE_C_BASIC_TYPE_ID_SHORT,
SPVM_NATIVE_C_BASIC_TYPE_ID_INT,
SPVM_NATIVE_C_BASIC_TYPE_ID_LONG,
SPVM_NATIVE_C_BASIC_TYPE_ID_FLOAT,
SPVM_NATIVE_C_BASIC_TYPE_ID_DOUBLE,
SPVM_NATIVE_C_BASIC_TYPE_ID_STRING,
SPVM_NATIVE_C_BASIC_TYPE_ID_ANY_OBJECT,
SPVM_NATIVE_C_BASIC_TYPE_ID_BYTE_CLASS,
SPVM_NATIVE_C_BASIC_TYPE_ID_SHORT_CLASS,
SPVM_NATIVE_C_BASIC_TYPE_ID_INT_CLASS,
SPVM_NATIVE_C_BASIC_TYPE_ID_LONG_CLASS,
SPVM_NATIVE_C_BASIC_TYPE_ID_FLOAT_CLASS,
SPVM_NATIVE_C_BASIC_TYPE_ID_DOUBLE_CLASS,
SPVM_NATIVE_C_BASIC_TYPE_ID_BOOL_CLASS,
SPVM_NATIVE_C_BASIC_TYPE_ID_ERROR_CLASS,
SPVM_NATIVE_C_BASIC_TYPE_ID_ERROR_SYSTEM_CLASS,
SPVM_NATIVE_C_BASIC_TYPE_ID_ERROR_NOT_SUPPORTED_CLASS,
SPVM_NATIVE_C_BASIC_TYPE_ID_COMMAND_INFO_CLASS,
SPVM_NATIVE_C_BASIC_TYPE_ID_ADDRESS_CLASS,
SPVM_NATIVE_C_BASIC_TYPE_ID_ERROR_COMPILE_CLASS,
};
See "Basic Type IDs" in SPVM::Document::NativeAPI for the full lore. π₯
πΈ Basic Type Category IDs πΈ
enum {
SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_UNKNOWN,
SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_UNDEF,
SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_VOID,
SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_NUMERIC,
SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_MULNUM,
SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_STRING,
SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_CLASS,
SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_INTERFACE,
SPVM_NATIVE_C_BASIC_TYPE_CATEGORY_ANY_OBJECT,
};
See "Basic Type Category IDs" in SPVM::Document::NativeAPI when you need the whole story. π¦
π Type Flag IDs π
enum {
SPVM_NATIVE_C_TYPE_FLAG_REF = 1,
SPVM_NATIVE_C_TYPE_FLAG_MUTABLE = 2,
};
See "Type Flag IDs" in SPVM::Document::NativeAPI for the details, iykyk. π
π Copyright & License π
- Copyright (c) 2024 Yuki Kimoto
- MIT License
mwah π β this page is served by perl v5.42.2 and stamped 2026-02-03; hope it ate and left no crumbs, bestie π«Άπ
π¦ where this page comes from
- alpine 3.24: spvm-doc 0.990125-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms