Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Apr 1996 03:09:53 -0500 (CDT)
From:      Tony Kimball <alk@Think.COM>
To:        current@freebsd.org
Subject:   suggestion for lib/libc/i386/DEFS.h
Message-ID:  <199604090809.DAA02560@compound.think.com>

next in thread | raw e-mail | index | archive | help

It would be nice if the as macros would work with ANSI cpp, as for
example:

#ifndef __concat
#ifdef __STDC__
#define __CONCAT(a,b) a##b
#define __concat(a,b) __CONCAT(a,b)
#else /* ! __STDC__ */
#define __concat(a,b) a/**/b
#endif /* __STDC__ */
#endif /* def __concat */

...

#define ENTRY(x)	_START_ENTRY \
			.globl __concat(_,x); .type __concat(_,x),@function; __concat(_,x):; \
			_MID_ENTRY	\
			call mcount; 9:




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604090809.DAA02560>