Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
func_args.h
Go to the documentation of this file.
1/*
2 * This file is part of the Rishka distribution (https://github.com/nthnn/rishka).
3 * Copyright (c) 2024 Nathanne Isip.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
28#ifndef LIBRISHKA_FUNC_ARGS_H
29#define LIBRISHKA_FUNC_ARGS_H
30
37typedef __builtin_va_list func_arg_list;
38
49#define func_arg_start(ap, param) __builtin_va_start(ap, param)
50
61#define func_arg_get(ap, type) __builtin_va_arg(ap, type)
62
71#define func_arg_end(ap) __builtin_va_end(ap)
72
73#endif
__builtin_va_list func_arg_list
Type representing a list of function arguments.
Definition: func_args.h:37