git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@1467
35b4ef3e-fd22-0410-ab77-
dab3279adceb
// **//// /**///** ////////** /**//////**
// ** /** //** /** /** /**
// ** /** //** ******** /** /**
// **//// /**///** ////////** /**//////**
// ** /** //** /** /** /**
// ** /** //** ******** /** /**
-// // // // //////// // //
+// // // // //////// // //
//
// FRSH(FRescor ScHeduler), pronounced "fresh"
//==============================================
//
// FRSH(FRescor ScHeduler), pronounced "fresh"
//==============================================
#define ERROR(nn,ss) do {if(nn>FRSH_ERR_BASE_VALUE) my_frsh_strerror(nn, ss); else perror(ss); exit (nn);} while (0)
#define ERROR(nn,ss) do {if(nn>FRSH_ERR_BASE_VALUE) my_frsh_strerror(nn, ss); else perror(ss); exit (nn);} while (0)
int frsh_strerror (int error, char *message, size_t size);
void my_frsh_strerror(int error, char *sss);
int frsh_strerror (int error, char *message, size_t size);
void my_frsh_strerror(int error, char *sss);
/**
* This str_helper is needed to ensure argument expansion,
* see http://www.iar.com/p180591/p180591_eng.php
/**
* This str_helper is needed to ensure argument expansion,
* see http://www.iar.com/p180591/p180591_eng.php
} else { \
perror(error_string); \
} \
} else { \
perror(error_string); \
} \
* terror (int) needs to be visible in the point of call.
*
* @param funccall Code to execute that should return 0 in a non error
* terror (int) needs to be visible in the point of call.
*
* @param funccall Code to execute that should return 0 in a non error
**/
#define PRW(funccall) do { \
if ( (terror = funccall ) != 0) \
**/
#define PRW(funccall) do { \
if ( (terror = funccall ) != 0) \
* terror (int) needs to be visible in the point of call.
*
* @param funccall Code to execute that should return 0 in a non error
* terror (int) needs to be visible in the point of call.
*
* @param funccall Code to execute that should return 0 in a non error
**/
#define PXW(funccall) do { \
if ( (terror = funccall ) != 0) \
**/
#define PXW(funccall) do { \
if ( (terror = funccall ) != 0) \