dos_compilers/Microsoft C v4/INC/STDARG.H

16 lines
362 B
C++
Raw Normal View History

2024-07-01 19:35:17 +02:00
/*
* stdarg.h
*
* defines ANSI style macros for accessing arguments of a function which takes
* a variable number of arguments
*
* Copyright (C) Microsoft Corporation, 1985, 1986
*
*/
typedef char *va_list;
#define va_start(ap,v) ap = (va_list)&v + sizeof(v)
#define va_arg(ap,t) ((t*)(ap += sizeof(t)))[-1]
#define va_end(ap) ap = NULL