michael@0: #include "mozilla/Assertions.h" michael@0: michael@0: #include "nsError.h" michael@0: michael@0: /* michael@0: * No reason to pull in Assertions.h for every single file that includes michael@0: * nsError.h, so let's put this in its own .c file instead of in the .h. michael@0: */ michael@0: MOZ_STATIC_ASSERT(((nsresult)0) < ((nsresult)-1), michael@0: "nsresult must be an unsigned type"); michael@0: MOZ_STATIC_ASSERT(sizeof(nsresult) == sizeof(uint32_t), michael@0: "nsresult must be 32 bits");