Lines Matching refs:module
46 * To add error code to your module, you need to do the following:
48 * 1) Add a module offset code. Add yours to the bottom of the list
51 * 2) In your module, define a header file which uses one of the
63 * and then all errors associated with that module become offsets from the
64 * base associated with that module id. There are 16 bits of code bits for
65 * each module.
132 #define NS_ERROR_GENERATE(sev,module,code) \
133 ((nsresult) (((PRUint32)(sev)<<31) | ((PRUint32)(module+NS_ERROR_MODULE_BASE_OFFSET)<<16) | ((PRUint32)(code))) )
135 #define NS_ERROR_GENERATE_SUCCESS(module,code) \
136 ((nsresult) (((PRUint32)(NS_ERROR_SEVERITY_SUCCESS)<<31) | ((PRUint32)(module+NS_ERROR_MODULE_BASE_OFFSET)<<16) | ((PRUint32)(code))) )
138 #define NS_ERROR_GENERATE_FAILURE(module,code) \
139 ((nsresult) (((PRUint32)(NS_ERROR_SEVERITY_ERROR)<<31) | ((PRUint32)(module+NS_ERROR_MODULE_BASE_OFFSET)<<16) | ((PRUint32)(code))) )