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
VA_LIST_FUNC_MACRO.cpp
Go to the documentation of this file.
1
// checking for va-list function macros
2
3
25
#include <
stdio.h
>
26
#include <
string.h
>
27
28
#define foo(buf, s, ...) (sprintf (buf, s, __VA_ARGS__))
29
30
int
main
()
31
{
32
char
buf
[256] =
""
;
33
foo
(
buf
,
"%s %d"
,
"string"
, 1);
34
return
strcmp (
buf
,
"string 1"
);
35
}
36
buf
#define buf
Definition
17.names.cpp:452
foo
#define foo(buf, s,...)
Definition
VA_LIST_FUNC_MACRO.cpp:28
main
int main()
Definition
VA_LIST_FUNC_MACRO.cpp:30
stdio.h
string.h
Generated by
1.9.8