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
GLOBAL_NOTHROW.cpp
Go to the documentation of this file.
1
// checking for ::nothrow
2
3
25
struct
nothrow_t
{ };
26
27
extern
const
nothrow_t
nothrow
;
28
29
const
nothrow_t
*
ptr
= &
nothrow
;
30
31
32
int
main
(
int
argc,
char
*argv[])
33
{
34
(void)&argv;
35
36
// foil clever optimizers
37
if
(argc > 2)
38
ptr
= 0;
39
40
// will fail at link-time if ::nothrow is not defined
41
// in the compiler support library
42
return
!(0 !=
ptr
);
43
}
main
#define main
Definition
BAD_ALLOC_COPY_CTOR.cpp:32
ptr
const nothrow_t * ptr
Definition
GLOBAL_NOTHROW.cpp:29
nothrow
const nothrow_t nothrow
Definition
STD_NOTHROW.cpp:38
nothrow_t
Definition
GLOBAL_NOTHROW.cpp:25
Generated by
1.9.8