Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
collapse_static_locals.lib.cpp
Go to the documentation of this file.
1
2
24// also defined in COLLAPSE_STATIC_LOCALS.cpp
25inline int foo ()
26{
27 // multiple instances of `i' must be collapsed
28 static int i = 0;
29 return i++;
30}
31
32// bar() returns foo()
33#if defined (_WIN32) && defined (_DLL)
34__declspec (dllexport)
35#endif // _WIN32 && _DLL
36int bar ()
37{
38 return foo ();
39}
#define i
Definition 17.names.cpp:126
__declspec(dllimport) void __stdcall InitializeCriticalSection(_RWSTD_CRITICAL_SECTION *)