decorate functions that do not return
This commit is contained in:
committed by
Andrew Johnson
co-authored by
Andrew Johnson
parent
131578124b
commit
43e75e3901
@@ -43,7 +43,8 @@ extern "C" {
|
||||
* \param errorMessage A printf-style error message describing the error.
|
||||
* \param ... Any parameters required for the error message.
|
||||
*/
|
||||
LIBCOM_API void cantProceed(
|
||||
LIBCOM_API EPICS_NORETURN
|
||||
void cantProceed(
|
||||
EPICS_PRINTF_FMT(const char *errorMessage), ...
|
||||
) EPICS_PRINTF_STYLE(1,2);
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#ifndef epicsExith
|
||||
#define epicsExith
|
||||
#include <libComAPI.h>
|
||||
#include "compilerDependencies.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -38,7 +39,8 @@ typedef void (*epicsExitFunc)(void *arg);
|
||||
* \brief Calls epicsExitCallAtExits(), then the OS exit() routine.
|
||||
* \param status Passed to exit()
|
||||
*/
|
||||
LIBCOM_API void epicsExit(int status);
|
||||
LIBCOM_API EPICS_NORETURN
|
||||
void epicsExit(int status);
|
||||
/**
|
||||
* \brief Arrange to call epicsExit() later from a low priority thread.
|
||||
*
|
||||
|
||||
@@ -223,7 +223,8 @@ LIBCOM_API void testTodoEnd(void);
|
||||
* \param fmt A printf-style format string giving the reason for stopping.
|
||||
* \param ... Any parameters required for the format string.
|
||||
*/
|
||||
LIBCOM_API void testAbort(EPICS_PRINTF_FMT(const char *fmt), ...)
|
||||
LIBCOM_API EPICS_NORETURN
|
||||
void testAbort(EPICS_PRINTF_FMT(const char *fmt), ...)
|
||||
EPICS_PRINTF_STYLE(1, 2);
|
||||
/** @} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user