Bug 1874684 - Part 6: Limit day length calculations to safe integers. r=mgaudet
[gecko.git] / dom / quota / RemoveParen.h
blob4dbc9f129bb6f093d8dc92f6b101c60e2026f5be
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 file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef DOM_QUOTA_REMOVEPAREN_H_
8 #define DOM_QUOTA_REMOVEPAREN_H_
10 // See
11 // https://stackoverflow.com/questions/24481810/how-to-remove-the-enclosing-parentheses-with-macro
12 #define MOZ_REMOVE_PAREN(X) MOZ_REMOVE_PAREN_HELPER2(MOZ_REMOVE_PAREN_HELPER X)
13 #define MOZ_REMOVE_PAREN_HELPER(...) MOZ_REMOVE_PAREN_HELPER __VA_ARGS__
14 #define MOZ_REMOVE_PAREN_HELPER2(...) MOZ_REMOVE_PAREN_HELPER3(__VA_ARGS__)
15 #define MOZ_REMOVE_PAREN_HELPER3(...) MOZ_REMOVE_PAREN_HELPER4_##__VA_ARGS__
16 #define MOZ_REMOVE_PAREN_HELPER4_MOZ_REMOVE_PAREN_HELPER
18 #endif // DOM_QUOTA_REMOVEPAREN_H_