`abi' namespace
Christophe de Dinechin
ddd at cup.hp.com
Thu Feb 17 17:52:12 UTC 2000
Matt Austern wrote:
>
> I see your point. OK, how about this as a compromise: use C++'s
> namespace aliasing feature. Our <cxxabi> header would look something
> like this:
>
> namespace __cxx_abi_version1 {
>
> void longjmp_unwind(jmp_buf, int);
> ...
>
> }
>
> namespace abi = __cxx_abi_version1;
>
> So the mangled name of longjmp_unwind would use the long name
> __cxx_abi_version1, which could not appear in any well formed
> user program. Anyone who includes the <cxxabi> header, however,
> could use the short alias "abi".
Problem: isn't longjmp_unwind intended for use by C programs as well. In which
case the only option really is (modulo possibly typos):
#define longjmp_unwind __cxx_abi_longjmp_unwind
#ifdef __cplusplus
extern "C" {
#endif
void longjmp_unwind (jmp_buf, int);
#ifdef __cplusplus
extern "C" {
#endif
cpp rulez.
Regards
Christophe
More information about the cxx-abi-dev
mailing list