Add variadic support for native class methods
Build / AerScript (push) Successful in 47s

This commit is contained in:
2026-11-21 17:48:41 +01:00
parent bcfa4c6163
commit 1d9bf543b6
3 changed files with 84 additions and 13 deletions
+1
View File
@@ -609,6 +609,7 @@ typedef struct ph7_class_def {
#define PH7_MEMBER_PUBLIC 0x10
#define PH7_MEMBER_PROTECTED 0x20
#define PH7_MEMBER_PRIVATE 0x40
#define PH7_MEMBER_VARIADIC 0x80 /* Method accepts a variadic argument tail past aParam */
#define PH7_PARAM_REF 0x01
#define PH7_DECL_FINAL 0x01
#define PH7_DECL_INTERFACE 0x02
+1
View File
@@ -998,6 +998,7 @@ struct ph7_vm_func_closure_env {
#define VM_FUNC_CLASS_METHOD 0x008 /* VM function is in fact a class method */
#define VM_FUNC_CLOSURE 0x010 /* VM function is a closure */
#define VM_FUNC_ARG_IGNORE 0x020 /* Do not install argument in the current frame */
#define VM_FUNC_VARIADIC 0x040 /* Native method accepts a variadic argument tail */
/*
* Each user defined function is parsed out and stored in an instance
* of the following structure.