Bug 1839170 - Refactor Snap pulling, Add Firefox Snap Core22 and GNOME 42 SDK symbols...
[gecko.git] / dom / localstorage / ReportInternalError.h
blob9cfd1cd72a29f8b084219cac26b48e0168b96baf
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/. */
7 #ifndef mozilla_dom_localstorage_ReportInternalError_h
8 #define mozilla_dom_localstorage_ReportInternalError_h
10 #include <cstdint>
11 #include "mozilla/Attributes.h"
12 #include "nsDebug.h"
14 #define LS_WARNING(...) \
15 do { \
16 nsPrintfCString s(__VA_ARGS__); \
17 mozilla::dom::localstorage::ReportInternalError(__FILE__, __LINE__, \
18 s.get()); \
19 NS_WARNING(s.get()); \
20 } while (0)
22 namespace mozilla::dom::localstorage {
24 MOZ_COLD void ReportInternalError(const char* aFile, uint32_t aLine,
25 const char* aStr);
27 } // namespace mozilla::dom::localstorage
29 #endif // mozilla_dom_localstorage_ReportInternalError_h