1 // Copyright 2005 Ben Hutchings <ben@decadent.org.uk>.
2 // See the file "COPYING" for licence details.
4 #ifndef INC_XPCOM_SUPPORT_HPP
5 #define INC_XPCOM_SUPPORT_HPP
9 #include "wchar_t_short.h"
11 #include "wchar_t_default.h"
13 namespace xpcom_support
15 void throw_exception(nsresult error);
17 inline nsresult check(nsresult result)
19 if (NS_FAILED(result))
20 throw_exception(result);
25 #endif // !INC_XPCOM_SUPPORT_HPP