Disabled debug output.
[reactos.git] / posix / include / stdarg.h
1 /* $Id: stdarg.h,v 1.2 2002/02/20 09:17:54 hyperion Exp $
2 */
3 /*
4 * stdarg.h
5 *
6 * handle variable argument list. Conforming to the Single UNIX(r)
7 * Specification Version 2, System Interface & Headers Issue 5
8 *
9 * This file is part of the ReactOS Operating System.
10 *
11 * Contributors:
12 * Created by KJK::Hyperion <noog@libero.it>
13 *
14 * THIS SOFTWARE IS NOT COPYRIGHTED
15 *
16 * This source code is offered for use in the public domain. You may
17 * use, modify or distribute it freely.
18 *
19 * This code is distributed in the hope that it will be useful but
20 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
21 * DISCLAMED. This includes but is not limited to warranties of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 *
24 */
25 #ifndef __STDARG_H_INCLUDED__
26 #define __STDARG_H_INCLUDED__
27
28 /* OBJECTS */
29
30 /* TYPES */
31 typedef char* va_list;
32
33 /* CONSTANTS */
34
35 /* PROTOTYPES */
36
37 /* MACROS */
38 /* taken from mingw's stdarg.h */
39
40 /* Amount of space required in an argument list (ie. the stack) for an
41 argument of type t. */
42 #define __va_argsiz(t) \
43 (((sizeof(t) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
44
45 #define va_start(ap, pN) \
46 ((ap) = ((va_list) (&pN) + __va_argsiz(pN)))
47
48 #define va_end(ap) ((void)0)
49
50 #define va_arg(ap, t) \
51 (((ap) = (ap) + __va_argsiz(t)), \
52 *((t*) (void*) ((ap) - __va_argsiz(t))))
53
54 #endif /* __STDARG_H_INCLUDED__ */
55
56 /* EOF */
57