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/. */
12 # define BREAK_TO_DEBUGGER DebugBreak()
14 # define BREAK_TO_DEBUGGER
18 # define VERIFY(exp) \
24 # define VERIFY(exp) (exp)
27 // inttypes.h-like macro for LONG_PTR/LPARAM formatting.
28 #ifdef HAVE_64BIT_BUILD
29 # define PRIdLPTR "lld"
30 # define PRIxLPTR "llx"
31 # define PRIXLPTR "llX"
33 # define PRIdLPTR "ld"
34 # define PRIxLPTR "lx"
35 # define PRIXLPTR "lX"
38 // Win32 logging modules:
39 // nsWindow, nsSound, and nsClipboard
41 // Logging can be changed at runtime without recompiling in the General
42 // property page of Visual Studio under the "Environment" property.
44 // Two variables are of importance to be set:
45 // MOZ_LOG and MOZ_LOG_FILE
48 // MOZ_LOG=all:5 (To log everything completely)
49 // MOZ_LOG=nsWindow:5,nsSound:5,nsClipboard:5
50 // (To log windows widget stuff)
51 // MOZ_LOG= (To turn off logging)
54 // MOZ_LOG_FILE=C:\log.txt (To a file on disk)
55 // MOZ_LOG_FILE=WinDebug (To the debug window)
56 // MOZ_LOG_FILE= (To stdout/stderr)