]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_error.h
Adding a test to see the time resolution
[frescor/frsh-include.git] / frsh_error.h
index d617ce2019f6198d0bb666d3d48be609d30e4811..a25ca8e1dded12bc094002e39731159639cbce07 100644 (file)
@@ -61,7 +61,7 @@
 //  **////  /**///**  ////////** /**//////**
 //  **      /**  //**        /** /**     /**
 //  **      /**   //** ********  /**     /**
-//  //       //     // ////////   //      // 
+//  //       //     // ////////   //      //
 //
 // FRSH(FRescor ScHeduler), pronounced "fresh"
 //==============================================
 #define FRSH_ERR_CONTRACT_TYPE_NOT_COMPATIBLE    0x02004025
 #define FRSH_ERR_CAPACITY_NOT_DECREASING         0x02004026
 #define FRSH_ERR_CONTRACT_LABEL_UNKNOWN          0x02004027
+#define FRSH_ERR_OUT_OF_BUDGET                                  0x02004028
+#define FRSH_ERR_ALREADY_IN_FRSH                        0x02004029
 
-#define FRSH_ERR_LAST_VALUE                      0x02004028
+#define FRSH_ERR_LAST_VALUE                      0x02004030
 
 #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);
 
-
 /**
  * This str_helper is needed to ensure argument expansion,
  * see http://www.iar.com/p180591/p180591_eng.php
@@ -160,7 +158,7 @@ void my_frsh_strerror(int error, char *sss);
                } else {                                \
                        perror(error_string);                   \
                }                                       \
-} while(0) 
+} while(0)
 
 
 
@@ -206,7 +204,7 @@ void my_frsh_strerror(int error, char *sss);
  * terror (int) needs to be visible in the point of call.
  *
  * @param funccall Code to execute that should return 0 in a non error
- *                 case. 
+ *                 case.
  **/
 #define PRW(funccall)  do { \
   if ( (terror = funccall ) != 0) \
@@ -227,7 +225,7 @@ void my_frsh_strerror(int error, char *sss);
  * terror (int) needs to be visible in the point of call.
  *
  * @param funccall Code to execute that should return 0 in a non error
- *                 case. 
+ *                 case.
  **/
 #define PXW(funccall)  do { \
   if ( (terror = funccall ) != 0) \