Lely core libraries  1.9.2
coapp.hpp
Go to the documentation of this file.
1 
21 #ifndef LELY_COAPP_INTERN_COAPP_HPP_
22 #define LELY_COAPP_INTERN_COAPP_HPP_
23 
24 #ifdef HAVE_CONFIG_H
25 #include <config.h>
26 #endif
27 
28 #define LELY_COAPP_INTERN 1
29 #include <lely/coapp/coapp.hpp>
30 
31 #include <lely/util/errnum.h>
32 
33 #include <system_error>
34 
35 namespace lely {
36 
37 namespace canopen {
38 
39 namespace {
40 
41 _Noreturn inline void
42 throw_errc(const char* what, int errc = get_errc()) {
43  throw ::std::system_error(errc, ::std::system_category(), what);
44 }
45 
46 } // namespace
47 
48 } // namespace canopen
49 
50 } // namespace lely
51 
52 #endif // LELY_COAPP_INTERN_COAPP_HPP_
This is the public header file of the C++ CANopen application library.
This header file is part of the utilities library; it contains the configuration functions.
This header file is part of the utilities library; it contains the native and platform-independent er...
int get_errc(void)
Returns the last (thread-specific) native error code set by a system call or library function...
Definition: errnum.c:947
Global namespace for the Lely Industries N.V. libraries.
Definition: buf.hpp:32
#define _Noreturn
A function declared with a _Noreturn function specifier SHALL not return to its caller.
Definition: features.h:214