Transactional logic, mostly done outgoing, structured incoming. Split tract and...
[firmerware] / include / tic55x / stdarg.h
1 /* Vararg handling for tic55x processors.
2  *
3  * This file is part of 0cpm Firmerware.
4  *
5  * 0cpm Firmerware is Copyright (c)2011 Rick van Rein, OpenFortress.
6  *
7  * 0cpm Firmerware is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation, version 3.
10  *
11  * 0cpm Firmerware is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with 0cpm Firmerware.  If not, see <http://www.gnu.org/licenses/>.
18  */
19
20 typedef void *va_list;
21
22 #define va_start(list,var) list=((&var)+1)
23 #define va_end(list)
24 #define va_arg(list,type) (((type *)(list=(((type *)list)+1)))[-1])
25