weeding out c++ keywords from sys/sys
Michael Butler
imb at protected-networks.net
Sun Feb 15 09:59:42 PST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I know that using a "wrapper", something like:
#ifdef __cplusplus
namespace __whatever
{
extern "C"
{
#endif
[ .. bunch of C prototypes .. ]
#ifdef __cplusplus
}
#endif
.. stops C++ from mangling the prototyped functions so they'll link
correctly but does it temporarily disable the "reserved word" tests?
Should it? ;-)
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)
iEYEARECAAYFAkmYWAcACgkQQv9rrgRC1JKnnQCeNJSMhFvG0666r4e+HLXIle1q
0GgAoMqep9fprWjFUB4z0bV0CLuJEV5+
=vRe+
-----END PGP SIGNATURE-----
More information about the freebsd-current
mailing list