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_OVERLOAD.cpp
Go to the documentation of this file.
1
// checking overloading on extern "C"
2
3
25
extern
"C"
{
26
27
typedef
int (*
pf_t
)(void);
28
29
int
foo
(
pf_t
f
) {
return
f
(); }
30
31
int
bar
() {
return
0; }
32
}
33
34
extern
"C++"
{
35
36
int
foo
(
int
(*
f
)(
void
)) {
return
f
(); }
37
38
int
baz
() {
return
1; }
39
40
}
41
42
int
main
()
43
{
44
return
!(0 ==
foo
(
bar
) && 1 ==
foo
(
baz
));
45
}
f
#define f
Definition
17.names.cpp:119
pf_t
int(* pf_t)(void)
Definition
EXTERN_C_OVERLOAD.cpp:27
baz
int baz()
Definition
EXTERN_C_OVERLOAD.cpp:38
bar
int bar()
Definition
EXTERN_C_OVERLOAD.cpp:31
main
int main()
Definition
EXTERN_C_OVERLOAD.cpp:42
foo
#define foo(buf, s,...)
Definition
VA_LIST_FUNC_MACRO.cpp:28
Generated by
1.9.8