#include "p6types.h"
Go to the source code of this file.
Namespaces | |
P6R | |
Macros | |
#define | P6ERR_CODE(err) ((err) & 0xffff) /** 16 bits */ |
#define | P6ERR_FACILITY(err) (((err) >> 16 ) & 0x7fff) /** 15 bits */ |
#define | P6ERR_STATUS(err) (((err) >> 31) & 0x1) /** 1 bit */ |
#define | P6ERR_STATUS_FAILURE 1 |
#define | P6ERR_STATUS_SUCCESS 0 |
#define | P6FAILED(err) (P6ERR_STATUS_FAILURE == P6ERR_STATUS((err))) |
#define | P6MAKEERR(s, f, c) ((P6ERR)(((P6UINT32)(s)<<31)|((P6UINT32)(f)<<16)|((P6UINT32)(c)))) |
#define | P6SUCCEEDED(err) (P6ERR_STATUS_SUCCESS == P6ERR_STATUS((err))) |
Enumerations | |
enum | P6R::ERR_FACILITY { P6R::P6EF_GENERAL = 0x0, P6R::P6EF_NETWORK = 0x1, P6R::P6EF_COM = 0x2, P6R::P6EF_DCOM = 0x3, P6R::P6EF_MINUSER = 0x2000, P6R::P6EF_MAX = 0x7fff } |
Standard error codes.
Definition in file p6err.h.