… | |
… | |
40 | #ifndef EV_H_ |
40 | #ifndef EV_H_ |
41 | #define EV_H_ |
41 | #define EV_H_ |
42 | |
42 | |
43 | #ifdef __cplusplus |
43 | #ifdef __cplusplus |
44 | # define EV_CPP(x) x |
44 | # define EV_CPP(x) x |
|
|
45 | # if __cplusplus >= 201103L |
|
|
46 | # define EV_THROW noexcept |
|
|
47 | # else |
|
|
48 | # define EV_THROW throw () |
|
|
49 | # endif |
45 | #else |
50 | #else |
46 | # define EV_CPP(x) |
51 | # define EV_CPP(x) |
|
|
52 | # define EV_THROW |
47 | #endif |
53 | #endif |
48 | |
|
|
49 | #define EV_THROW EV_CPP(throw()) |
|
|
50 | |
54 | |
51 | EV_CPP(extern "C" {) |
55 | EV_CPP(extern "C" {) |
52 | |
56 | |
53 | /*****************************************************************************/ |
57 | /*****************************************************************************/ |
54 | |
58 | |