Add makeVarArgs to ReflectUtil.hx

This commit is contained in:
ImVeryBad
2026-03-19 20:00:18 -06:00
committed by Hundrec
parent e6234397f5
commit 3633df3fdc
+9
View File
@@ -416,4 +416,13 @@ class ReflectUtil
if (cls == null) return "Unknown";
return Type.getClassName(cls);
}
/**
* Transform a function taking an array of arguments into a function that can
* be called with any number of arguments.
*/
public static function makeVarArgs(f:Array<Dynamic>->Dynamic):Dynamic
{
return Reflect.makeVarArgs(f);
}
}