Bug 1758713 [wpt PR 33128] - Clarify the status of the CSS build system, a=testonly
[gecko.git] / widget / windows / nsdefs.h
blob5c4134c7fd5f3b859aee89a26153216ed5a57d2f
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef NSDEFS_H
7 #define NSDEFS_H
9 #include <windows.h>
11 #ifdef _DEBUG
12 # define BREAK_TO_DEBUGGER DebugBreak()
13 #else
14 # define BREAK_TO_DEBUGGER
15 #endif
17 #ifdef _DEBUG
18 # define VERIFY(exp) \
19 if (!(exp)) { \
20 GetLastError(); \
21 BREAK_TO_DEBUGGER; \
23 #else // !_DEBUG
24 # define VERIFY(exp) (exp)
25 #endif // !_DEBUG
27 // Win32 logging modules:
28 // nsWindow, nsSound, and nsClipboard
30 // Logging can be changed at runtime without recompiling in the General
31 // property page of Visual Studio under the "Environment" property.
33 // Two variables are of importance to be set:
34 // MOZ_LOG and MOZ_LOG_FILE
36 // MOZ_LOG:
37 // MOZ_LOG=all:5 (To log everything completely)
38 // MOZ_LOG=nsWindow:5,nsSound:5,nsClipboard:5
39 // (To log windows widget stuff)
40 // MOZ_LOG= (To turn off logging)
42 // MOZ_LOG_FILE:
43 // MOZ_LOG_FILE=C:\log.txt (To a file on disk)
44 // MOZ_LOG_FILE=WinDebug (To the debug window)
45 // MOZ_LOG_FILE= (To stdout/stderr)
47 #endif // NSDEFS_H