Namespace dawn/common/ and dawn/utils/ in dawn::

Only Constants.h remains in no namespace; but it may be addressed
in the future as well.

Bug: dawn:302
Change-Id: Ib9b9ab4b974ad1de1bb9f2302f4d24d8216f55e4
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/132841
Kokoro: Austin Eng <enga@chromium.org>
Auto-Submit: Austin Eng <enga@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
Austin Eng
2023-05-17 18:41:02 +00:00
committed by Dawn LUCI CQ
parent 0bb1bb3067
commit 2731b76ded
302 changed files with 2225 additions and 1255 deletions

View File

@@ -19,6 +19,12 @@
#include "dawn/common/Log.h"
#include "dawn/common/Platform.h"
#if DAWN_COMPILER_IS(MSVC)
extern void __cdecl __debugbreak(void);
#endif
namespace dawn {
#if DAWN_COMPILER_IS(CLANG) || DAWN_COMPILER_IS(GCC)
void BreakPoint() {
#if DAWN_PLATFORM_IS(X86)
@@ -43,7 +49,6 @@ void BreakPoint() {
}
#elif DAWN_COMPILER_IS(MSVC)
extern void __cdecl __debugbreak(void);
void BreakPoint() {
__debugbreak();
}
@@ -64,3 +69,5 @@ void HandleAssertionFailure(const char* file,
BreakPoint();
#endif
}
} // namespace dawn