RTEMS CPU Kit with SuperCore  4.11.3
rtl-error.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT (c) 2012 Chris Johns <chrisj@rtems.org>
3  *
4  * The license and distribution terms for this file may be
5  * found in the file LICENSE in this distribution or at
6  * http://www.rtems.org/license/LICENSE.
7  */
16 #if !defined (_RTEMS_RTL_ERROR_H_)
17 #define _RTEMS_RTL_ERROR_H_
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif /* __cplusplus */
22 
23 #if __GNUC__
24 #define RTEMS_RTL_PRINTF_ATTR __attribute__((__format__(__printf__,2,3)))
25 #else
26 #define RTEMS_RTL_PRINTF_ATTR
27 #endif
28 
38 void rtems_rtl_set_error (int error, const char* format, ...) RTEMS_RTL_PRINTF_ATTR;
39 
43 void rtems_rtl_clear_error (void);
44 
45 #ifdef __cplusplus
46 }
47 #endif /* __cplusplus */
48 
49 #endif
void rtems_rtl_clear_error(void)
Clears the error.
Definition: rtl-error.c:57
Definition: mknod-pack_dev.c:255
void rtems_rtl_set_error(int error, const char *format,...) RTEMS_RTL_PRINTF_ATTR
Sets the error.
Definition: rtl-error.c:28