1 /* -*- Mode: C++; tab-width: 4; 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/. */ 5 6 #ifndef ImportDebug_h___ 7 #define ImportDebug_h___ 8 9 #ifdef NS_DEBUG 10 # define IMPORT_DEBUG 1 11 #endif 12 13 #include "mozilla/Logging.h" 14 extern mozilla::LazyLogModule 15 IMPORTLOGMODULE; // defined in nsImportService.cpp 16 17 #define IMPORT_LOG0(x) MOZ_LOG(IMPORTLOGMODULE, mozilla::LogLevel::Debug, (x)) 18 #define IMPORT_LOG1(x, y) \ 19 MOZ_LOG(IMPORTLOGMODULE, mozilla::LogLevel::Debug, (x, y)) 20 #define IMPORT_LOG2(x, y, z) \ 21 MOZ_LOG(IMPORTLOGMODULE, mozilla::LogLevel::Debug, (x, y, z)) 22 #define IMPORT_LOG3(a, b, c, d) \ 23 MOZ_LOG(IMPORTLOGMODULE, mozilla::LogLevel::Debug, (a, b, c, d)) 24 25 #endif 26