Modifications to compile under Nim 2.x

This commit is contained in:
2026-03-28 09:55:17 -05:00
parent ce70e5ddd4
commit ab2579bdb5
5 changed files with 13 additions and 12 deletions

View File

@@ -842,7 +842,7 @@ macro genPropAccessors(
of vpcAtLeastOne, vpcAny:
let funcDef = genAstOpt({kDirtyTemplate}, funcName, typeName):
func funcName*(vc4: VCard4): seq[typeName] =
result = findAll[typeName](vc4.content)
result = findAll[typeName, VC4_Property](vc4.content)
result.add(funcDef)
macro genNameAccessors(propNames: static[seq[VC4_PropertyName]]): untyped =