From 4048ceb7da5e1bdf47038c01c7c68b250ff462a1 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Wed, 29 Dec 2021 12:27:44 +0100 Subject: [PATCH] Don't use class before declaration Signed-off-by: Sven Strickroth --- .../CrashHandler/CrashHandler/CrashHandler.h | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ext/CrashServer/CrashHandler/CrashHandler/CrashHandler.h b/ext/CrashServer/CrashHandler/CrashHandler/CrashHandler.h index 85f767a19..c094fa00b 100644 --- a/ext/CrashServer/CrashHandler/CrashHandler/CrashHandler.h +++ b/ext/CrashServer/CrashHandler/CrashHandler/CrashHandler.h @@ -1,4 +1,4 @@ -// Copyright 2014 Idol Software, Inc. +// Copyright 2014 Idol Software, Inc. // // This file is part of Doctor Dump SDK. // @@ -32,20 +32,6 @@ # endif // !_DEBUG #endif // CRASHHANDLER_ENABLE_RELEASE_ASSERTS -namespace { - - // This template should be in anonymous namespace since __COUNTER__ is unique only for a single translation unit (as anonymous namespace items) - template - __forceinline static void SkipDoctorDump_ReportAssertionViolation(LPCSTR dumpGroup) - { - static LONG volatile isAlreadyReported = FALSE; - if (TRUE == InterlockedCompareExchange(&isAlreadyReported, TRUE, FALSE)) - return; - ::RaiseException(CrashHandler::ExceptionAssertionViolated, 0, 1, reinterpret_cast(&dumpGroup)); - } - -} // namespace { - //! Contains data that identifies your application. struct ApplicationInfo { @@ -501,4 +487,18 @@ private: pfnGetVersionFromFile m_GetVersionFromFile; }; -#endif // __CRASH_HANDLER_H__ \ No newline at end of file +namespace { + + // This template should be in anonymous namespace since __COUNTER__ is unique only for a single translation unit (as anonymous namespace items) + template + __forceinline static void SkipDoctorDump_ReportAssertionViolation(LPCSTR dumpGroup) + { + static LONG volatile isAlreadyReported = FALSE; + if (TRUE == InterlockedCompareExchange(&isAlreadyReported, TRUE, FALSE)) + return; + ::RaiseException(CrashHandler::ExceptionAssertionViolated, 0, 1, reinterpret_cast(&dumpGroup)); + } + +} // namespace { + +#endif // __CRASH_HANDLER_H__ -- 2.11.4.GIT