⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdarg.h

📁 s1mp3 sdk, action mp3 develop tool kit!
💻 H
字号:
/* *	A nice old stdarg.h * *	djm 28/2/2000 * *	Will this work? Who knows! * *	NB. va_start must be called immediately after calling *	the function - i.e. no auto variables can be initialised *	(except to constants) * *	NB2. The first call to va_next returns with the value *	of the first named argument, the 2nd call returns the *	value of the 2nd named argument etc etc * *	I've only tested this with 2 byte arguments but it  *	seems to work... * *	$Id: stdarg.h,v 1.3 2001/10/16 18:30:32 dom Exp $ */#ifndef __STDARG_H__#define __STDARG_H__#ifndef DEF_GETARG#define DEF_GETARGextern int __LIB__ getarg(void);#endif#define va_list unsigned char *#define va_start(ap,last) ap=(getarg()*2)+&last-2#define va_arg(ap,type) (type *)*(ap-=sizeof(type))#define va_end(ap)/* * This (non-standard) macro could be used by routines * with a similar setup to the library printf routines */#define va_addr(ap,type) (ap-=sizeof(type))#endif /* _STDARG_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -