trash/nice-os

Clone repo: git clone https://git.topcheto.eu/trash/nice-os.git
All branches, All tags, View raw

File contents

#ifndef STDARG_H
#define STDARG_H

typedef void* va_list;

#define NULL ((void*)0)

#define va_start(list, param) ( (list) = &(param) + 1 )
#define va_next(list, type) ( *((type*)((list) = (type*)(list) + 1) - 1) )
#define va_end(list) ;

#endif