xpcom/base/nsErrorAssertsC.c

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/base/nsErrorAssertsC.c	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,12 @@
     1.4 +#include "mozilla/Assertions.h"
     1.5 +
     1.6 +#include "nsError.h"
     1.7 +
     1.8 +/*
     1.9 + * No reason to pull in Assertions.h for every single file that includes
    1.10 + * nsError.h, so let's put this in its own .c file instead of in the .h.
    1.11 + */
    1.12 +MOZ_STATIC_ASSERT(((nsresult)0) < ((nsresult)-1),
    1.13 +                  "nsresult must be an unsigned type");
    1.14 +MOZ_STATIC_ASSERT(sizeof(nsresult) == sizeof(uint32_t),
    1.15 +                  "nsresult must be 32 bits");

mercurial