mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
Bug 1324093 - Part 0: Use MOZ_{BEGIN,END}_EXTERN_C in Assertions.h. r=froydnj
Drive-by cleanup. MozReview-Commit-ID: CX7eY5dXWaj --HG-- extra : rebase_source : ce5a8f0284fe325e4babf67aa6a726afe666e586
This commit is contained in:
parent
1c607df1f4
commit
0c532df64a
@ -54,15 +54,11 @@ AnnotateMozCrashReason(const char* reason)
|
||||
* because those headers clutter the global namespace with a significant
|
||||
* number of undesired macros and symbols.
|
||||
*/
|
||||
# ifdef __cplusplus
|
||||
extern "C" {
|
||||
# endif
|
||||
MOZ_BEGIN_EXTERN_C
|
||||
__declspec(dllimport) int __stdcall
|
||||
TerminateProcess(void* hProcess, unsigned int uExitCode);
|
||||
__declspec(dllimport) void* __stdcall GetCurrentProcess(void);
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
# endif
|
||||
MOZ_END_EXTERN_C
|
||||
#else
|
||||
# include <signal.h>
|
||||
#endif
|
||||
@ -142,9 +138,7 @@ __declspec(dllimport) void* __stdcall GetCurrentProcess(void);
|
||||
#define MOZ_STATIC_ASSERT_IF(cond, expr, reason) static_assert(!(cond) || (expr), reason)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
MOZ_BEGIN_EXTERN_C
|
||||
|
||||
/*
|
||||
* Prints |aStr| as an assertion failure (using aFilename and aLine as the
|
||||
@ -286,9 +280,7 @@ __declspec(noreturn) __inline void MOZ_NoReturn() {}
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
MOZ_END_EXTERN_C
|
||||
|
||||
/*
|
||||
* MOZ_ASSERT(expr [, explanation-string]) asserts that |expr| must be truthy in
|
||||
|
Loading…
Reference in New Issue
Block a user