Atlas - VARARGS.H

Home / ext / JunkDrawer / DOS / BuildTools / v4.0 / BLD / INC Lines: 1 | Size: 621 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1/*** 2*varargs.h - XENIX style macros for variable argument functions 3* 4* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. 5* 6*Purpose: 7* This file defines XENIX style macros for accessing arguments of a 8* function which takes a variable number of arguments. 9* [System V] 10* 11*******************************************************************************/ 12 13#ifndef _VA_LIST_DEFINED 14typedef char *va_list; 15#define _VA_LIST_DEFINED 16#endif 17 18#define va_dcl va_list va_alist; 19#define va_start(ap) ap = (va_list)&va_alist 20#define va_arg(ap,t) ((t *)(ap += sizeof(t)))[-1] 21#define va_end(ap) ap = NULL 22
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.