source: azure_iot_hub/trunk/musl-1.1.18/include/stdarg.h@ 388

Last change on this file since 388 was 388, checked in by coas-nagasima, 5 years ago

Azure IoT Hub Device C SDK を使ったサンプルの追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr
File size: 867 bytes
Line 
1#ifndef _STDARG_H
2#define _STDARG_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define __NEED_va_list
9
10#include <bits/alltypes.h>
11
12#if !defined(_MSC_VER) && !defined(__c2__)
13
14#define va_start(v,l) __builtin_va_start(v,l)
15#define va_end(v) __builtin_va_end(v)
16#define va_arg(v,l) __builtin_va_arg(v,l)
17#define va_copy(d,s) __builtin_va_copy(d,s)
18
19#else
20
21#define _INTSIZEOF(n) ((sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1))
22
23#define __crt_va_start(ap, v) ((void)(ap = (va_list)&(v) + _INTSIZEOF(v)))
24#define __crt_va_arg(ap, t) (*(t*)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)))
25#define __crt_va_end(ap) ((void)(ap = (va_list)0))
26
27#define va_start __crt_va_start
28#define va_arg __crt_va_arg
29#define va_end __crt_va_end
30#define va_copy(destination, source) ((destination) = (source))
31
32#endif
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif
Note: See TracBrowser for help on using the repository browser.