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
EXCEPTION_SPECIFICATION_ON_NEW.cpp
Go to the documentation of this file.
1
// checking for exception specification on new
2
3
25
#include <
stdlib.h
>
26
#include <
stddef.h
>
27
#include "config.h"
28
29
30
#ifndef _RWSTD_NO_NAMESPACE
31
32
namespace
std
{
33
34
struct
bad_alloc
{ };
35
36
}
37
38
void
*
operator
new
(size_t)
throw
(
std::bad_alloc
);
39
40
#else
// if defined (_RWSTD_NO_NAMESPACE)
41
42
struct
bad_alloc
{ };
43
44
void
*
operator
new
(size_t)
throw
(
bad_alloc
);
45
46
#endif
// _RWSTD_NO_NAMESPACE
47
48
49
void
*
foo
()
50
{
51
void
*
p
=
operator
new
(1);
52
return
p
;
53
}
p
#define p
Definition
17.names.cpp:132
foo
void * foo()
Definition
EXCEPTION_SPECIFICATION_ON_NEW.cpp:49
std
Definition
json.h:5363
stddef.h
stdlib.h
bad_alloc
Definition
GLOBAL_BAD_ALLOC.cpp:46
std::bad_alloc
Definition
EXCEPTION_SPECIFICATION_ON_NEW.cpp:34
Generated by
1.9.8