1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef mozilla_dom_localstorage_ReportInternalError_h 8 #define mozilla_dom_localstorage_ReportInternalError_h 9 10 #include "nsDebug.h" 11 12 #define LS_WARNING(...) \ 13 do { \ 14 nsPrintfCString s(__VA_ARGS__); \ 15 mozilla::dom::localstorage::ReportInternalError(__FILE__, __LINE__, \ 16 s.get()); \ 17 NS_WARNING(s.get()); \ 18 } while (0) 19 20 namespace mozilla { 21 namespace dom { 22 namespace localstorage { 23 24 void ReportInternalError(const char* aFile, uint32_t aLine, const char* aStr); 25 26 } // namespace localstorage 27 } // namespace dom 28 } // namespace mozilla 29 30 #endif // mozilla_dom_localstorage_ReportInternalError_h 31