![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|
Standard variable argument handling for C. More...

Go to the source code of this file.
Macros | |
| #define | va_start(v, l) __builtin_va_start(v, l) |
| @macro va_start | |
| #define | va_arg(v, l) __builtin_va_arg(v, l) |
| @macro va_arg | |
| #define | va_end(v) __builtin_va_end(v) |
| @macro va_end | |
| #define | va_copy(d, s) __builtin_va_copy(d, s) |
| @macro va_copy | |
Typedefs | |
| typedef __builtin_va_list | va_list |
| Type used for variable argument lists. | |
Standard variable argument handling for C.
This header file provides macros for handling functions with a variable number of arguments. It defines the type va_list and the associated macros to initialize, access, and clean up variable arguments.
| #define va_arg | ( | v, | |
| l | |||
| ) | __builtin_va_arg(v, l) |
@macro va_arg
Retrieve the next argument in the variable argument list.
This macro retrieves the next argument from the va_list variable v and advances v to the next argument. The type of the argument to be retrieved is specified by the type l.
| v | The va_list variable from which to retrieve the argument. |
| l | The type of the argument to be retrieved. |
| #define va_copy | ( | d, | |
| s | |||
| ) | __builtin_va_copy(d, s) |
@macro va_copy
Copy a va_list variable.
This macro copies the variable argument list from s to d, allowing multiple traversals of the same list.
| d | The destination va_list variable. |
| s | The source va_list variable to be copied. |
| #define va_end | ( | v | ) | __builtin_va_end(v) |
@macro va_end
Clean up the va_list variable.
This macro performs any necessary cleanup for the va_list variable v after all variable arguments have been accessed.
| v | The va_list variable to be cleaned up. |
| #define va_start | ( | v, | |
| l | |||
| ) | __builtin_va_start(v, l) |
@macro va_start
Initialize a va_list for variable argument access.
This macro initializes the va_list variable v to retrieve the variable arguments, starting after the last named parameter l.
| v | The va_list variable to be initialized. |
| l | The last known fixed argument before the variable arguments. |
| typedef __builtin_va_list va_list |
Type used for variable argument lists.