Added opaque attributes to API

This commit is contained in:
2026-05-06 16:02:27 +10:00
parent 7cdb81e0bf
commit 60a0fe8907
4 changed files with 46 additions and 15 deletions
+6 -3
View File
@@ -428,13 +428,16 @@ static void processAttribute(Toy_VM* vm) {
//type-based attributes
if (TOY_VALUE_IS_STRING(compound)) {
result = handleStringAttributes(vm, compound, attribute);
result = Toy_private_handleStringAttributes(vm, compound, attribute);
}
else if (TOY_VALUE_IS_ARRAY(compound)) {
result = handleArrayAttributes(vm, compound, attribute);
result = Toy_private_handleArrayAttributes(vm, compound, attribute);
}
else if (TOY_VALUE_IS_TABLE(compound)) {
result = handleTableAttributes(vm, compound, attribute);
result = Toy_private_handleTableAttributes(vm, compound, attribute);
}
else if (TOY_VALUE_IS_OPAQUE(compound)) {
result = Toy_private_handleOpaqueAttributes(vm, compound, attribute);
}
else {
char buffer[256];