Add a thin declarative API for defining script methods/properties

scriptvalue.h/.c holds the scriptvalue_t tagged-union type and its
JS<->C decode/encode helpers; scriptdef.h/.c holds the declarative
scriptfuncdef_t/scriptpropdef_t definitions, the binding registry,
and the JerryScript trampolines. Lets a module declare its JS-facing
methods/properties/globals as typed data instead of hand-writing
argument-checking boilerplate per method. Framework only for now --
no existing module has been migrated onto it yet.
This commit is contained in:
2026-08-03 19:36:08 -05:00
parent b9d2fe60fd
commit 5f34cb34b2
8 changed files with 1269 additions and 0 deletions
+2
View File
@@ -7,6 +7,8 @@ include(dusktest)
dusktest(test_modulerequire.c)
dusktest(test_scriptdef.c)
dusktest(test_overworldscene.c)
target_compile_definitions(test_overworldscene PRIVATE
DUSK_ASSETS_DIR="${DUSK_ASSETS_DIR}"