ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.444 by root, Mon Oct 29 00:00:22 2018 UTC vs.
Revision 1.445 by root, Fri Dec 21 06:54:30 2018 UTC

3978The normal C API should work fine when used from C++: both ev.h and the 3978The normal C API should work fine when used from C++: both ev.h and the
3979libev sources can be compiled as C++. Therefore, code that uses the C API 3979libev sources can be compiled as C++. Therefore, code that uses the C API
3980will work fine. 3980will work fine.
3981 3981
3982Proper exception specifications might have to be added to callbacks passed 3982Proper exception specifications might have to be added to callbacks passed
3983to libev: exceptions may be thrown only from watcher callbacks, all 3983to libev: exceptions may be thrown only from watcher callbacks, all other
3984other callbacks (allocator, syserr, loop acquire/release and periodic 3984callbacks (allocator, syserr, loop acquire/release and periodic reschedule
3985reschedule callbacks) must not throw exceptions, and might need a C<throw 3985callbacks) must not throw exceptions, and might need a C<noexcept>
3986()> specification. If you have code that needs to be compiled as both C 3986specification. If you have code that needs to be compiled as both C and
3987and C++ you can use the C<EV_THROW> macro for this: 3987C++ you can use the C<EV_NOEXCEPT> macro for this:
3988 3988
3989 static void 3989 static void
3990 fatal_error (const char *msg) EV_THROW 3990 fatal_error (const char *msg) EV_NOEXCEPT
3991 { 3991 {
3992 perror (msg); 3992 perror (msg);
3993 abort (); 3993 abort ();
3994 } 3994 }
3995 3995

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines