2 * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
9 * $Id: varargs.h,v 1.8 2002/07/29 21:31:00 gshapiro Exp $
13 ** libsm variable argument lists
19 # if defined(__STDC__) || defined(__cplusplus)
22 # define SM_VA_START(ap, f) va_start(ap, f)
23 # else /* defined(__STDC__) || defined(__cplusplus) */
26 # define SM_VA_START(ap, f) va_start(ap)
27 # endif /* defined(__STDC__) || defined(__cplusplus) */
30 # define SM_VA_COPY(dst, src) va_copy((dst), (src))
31 # elif defined(__va_copy)
32 # define SM_VA_COPY(dst, src) __va_copy((dst), (src))
34 # define SM_VA_COPY(dst, src) memcpy(&(dst), &(src), sizeof((dst)))
38 ** The following macros are useless, but are provided for symmetry.
41 # define SM_VA_LOCAL_DECL va_list ap;
42 # define SM_VA_ARG(ap, type) va_arg(ap, type)
43 # define SM_VA_END(ap) va_end(ap)
45 #endif /* ! SM_VARARGS_H */