-
-
Notifications
You must be signed in to change notification settings - Fork 9
Intrinsic Procedure __variadic_array__
IsaacShelton edited this page Nov 13, 2022
·
3 revisions
The __variadic_array__
function can be defined to specify how Adept-style variadic arguments are passed
func __variadic_array__(pointer ptr, bytes usize, length usize, _maybe_types ptr) $V {
}
where $V
is the type that will be used for variadic arrays
-
pointer
- Pointer to temporary stack allocated variadic arguments, stored with no alignment -
bytes
- Total bytes of all variadic arguments combined, without alignment -
length
- Total number of variadic arguments -
_maybe_types
- Temporary stack allocated array of type**AnyType
, will be null if RTTI is disabled
This is usually not defined by the user, instead 2.7/VariadicArray.adept
provides the common definition used by most programmers