Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
etc
config
src
EXTERN_C_COMPATIBILITY.cpp
Go to the documentation of this file.
1
// checking for compatibility of extern "C" and "C++"
2
3
25
extern
"C"
{
26
typedef
int (*
ext_c_fun
)();
27
28
int
foo
(
int
(*
pf
)()) {
return
pf
(); }
29
}
30
31
extern
"C++"
{
32
int
bar
() {
return
0; }
33
}
34
35
int
main
()
36
{
37
return
!(0 ==
foo
((
ext_c_fun
)
bar
));
38
}
pf
#define pf
Definition
17.names.cpp:516
ext_c_fun
int(* ext_c_fun)()
Definition
EXTERN_C_COMPATIBILITY.cpp:26
bar
int bar()
Definition
EXTERN_C_COMPATIBILITY.cpp:32
main
int main()
Definition
EXTERN_C_COMPATIBILITY.cpp:35
foo
#define foo(buf, s,...)
Definition
VA_LIST_FUNC_MACRO.cpp:28
Generated by
1.9.8