Ada 2.9.2
Fast spec-compliant URL parser
|
Common definitions for cross-platform compiler support. More...
Go to the source code of this file.
Namespaces | |
namespace | ada |
Macros | |
#define | ADA_BEGIN_DEBUG_BLOCK(name) |
#define | ADA_END_DEBUG_BLOCK(name) |
#define | ADA_DEBUG_BLOCK(name, block) |
#define | ADA_ROUNDUP_N(a, n) |
#define | ADA_ROUNDDOWN_N(a, n) |
#define | ADA_ISALIGNED_N(ptr, n) |
#define | ada_really_inline inline __attribute__((always_inline)) |
#define | ada_never_inline inline __attribute__((noinline)) |
#define | ada_unused __attribute__((unused)) |
#define | ada_warn_unused __attribute__((warn_unused_result)) |
#define | ADA_PUSH_DISABLE_WARNINGS _Pragma("GCC diagnostic push") |
#define | ADA_PUSH_DISABLE_ALL_WARNINGS |
#define | ADA_PRAGMA(P) |
#define | ADA_DISABLE_GCC_WARNING(WARNING) |
#define | ADA_DISABLE_UNDESIRED_WARNINGS |
#define | ADA_DISABLE_DEPRECATED_WARNING ADA_DISABLE_GCC_WARNING("-Wdeprecated-declarations") |
#define | ADA_DISABLE_STRICT_OVERFLOW_WARNING ADA_DISABLE_GCC_WARNING("-Wstrict-overflow") |
#define | ADA_POP_DISABLE_WARNINGS _Pragma("GCC diagnostic pop") |
#define | ADA_DLLIMPORTEXPORT |
#define | ADA_TRY(EXPR) |
If EXPR is an error, returns it. | |
#define | __has_cpp_attribute(x) |
#define | ADA_ATTRIBUTE_NOINLINE |
#define | ADA_DEVELOPMENT_CHECKS 1 |
#define | ADA_STR(x) |
#define | ADA_REQUIRE(EXPR) |
#define | ADA_FAIL(MESSAGE) |
#define | ADA_ASSERT_EQUAL(LHS, RHS, MESSAGE) |
#define | ADA_ASSERT_TRUE(COND) |
#define | ADA_ASSUME(COND) |
#define | ada_lifetime_bound |
Functions | |
void | ada::unreachable () |
Common definitions for cross-platform compiler support.
Definition in file common_defs.h.
#define __has_cpp_attribute | ( | x | ) |
Definition at line 142 of file common_defs.h.
#define ADA_ASSERT_EQUAL | ( | LHS, | |
RHS, | |||
MESSAGE ) |
Definition at line 199 of file common_defs.h.
Referenced by ada::url_aggregator::clear_hash(), and ada::url_aggregator::clear_search().
#define ADA_ASSERT_TRUE | ( | COND | ) |
Definition at line 206 of file common_defs.h.
Referenced by ada::url_aggregator::clear_hash(), ada::url_aggregator::clear_port(), ada::url_aggregator::clear_search(), ada::parser::parse_url_impl(), ada::url_aggregator::set_hash(), ada::url_aggregator::set_host(), ada::url_aggregator::set_hostname(), ada::url_aggregator::set_href(), ada::url_aggregator::set_password(), ada::url_aggregator::set_pathname(), ada::url_aggregator::set_port(), ada::url_aggregator::set_protocol(), ada::url_aggregator::set_search(), and ada::url_aggregator::set_username().
#define ADA_ASSUME | ( | COND | ) |
Definition at line 223 of file common_defs.h.
#define ADA_ATTRIBUTE_NOINLINE |
Definition at line 148 of file common_defs.h.
#define ADA_BEGIN_DEBUG_BLOCK | ( | name | ) |
Definition at line 33 of file common_defs.h.
#define ADA_DEBUG_BLOCK | ( | name, | |
block ) |
Definition at line 35 of file common_defs.h.
#define ADA_DEVELOPMENT_CHECKS 1 |
Definition at line 182 of file common_defs.h.
#define ADA_DISABLE_DEPRECATED_WARNING ADA_DISABLE_GCC_WARNING("-Wdeprecated-declarations") |
Definition at line 108 of file common_defs.h.
#define ADA_DISABLE_GCC_WARNING | ( | WARNING | ) |
Definition at line 100 of file common_defs.h.
#define ADA_DISABLE_STRICT_OVERFLOW_WARNING ADA_DISABLE_GCC_WARNING("-Wstrict-overflow") |
Definition at line 110 of file common_defs.h.
#define ADA_DISABLE_UNDESIRED_WARNINGS |
Definition at line 106 of file common_defs.h.
#define ADA_DLLIMPORTEXPORT |
Definition at line 128 of file common_defs.h.
#define ADA_END_DEBUG_BLOCK | ( | name | ) |
Definition at line 34 of file common_defs.h.
#define ADA_FAIL | ( | MESSAGE | ) |
Definition at line 194 of file common_defs.h.
#define ADA_ISALIGNED_N | ( | ptr, | |
n ) |
Definition at line 42 of file common_defs.h.
#define ada_lifetime_bound |
Definition at line 250 of file common_defs.h.
#define ada_never_inline inline __attribute__((noinline)) |
Definition at line 78 of file common_defs.h.
#define ADA_POP_DISABLE_WARNINGS _Pragma("GCC diagnostic pop") |
Definition at line 112 of file common_defs.h.
#define ADA_PRAGMA | ( | P | ) |
Definition at line 99 of file common_defs.h.
#define ADA_PUSH_DISABLE_ALL_WARNINGS |
Definition at line 86 of file common_defs.h.
#define ADA_PUSH_DISABLE_WARNINGS _Pragma("GCC diagnostic push") |
Definition at line 83 of file common_defs.h.
#define ada_really_inline inline __attribute__((always_inline)) |
Definition at line 77 of file common_defs.h.
#define ADA_REQUIRE | ( | EXPR | ) |
Definition at line 190 of file common_defs.h.
#define ADA_ROUNDDOWN_N | ( | a, | |
n ) |
Definition at line 40 of file common_defs.h.
#define ADA_ROUNDUP_N | ( | a, | |
n ) |
Definition at line 39 of file common_defs.h.
#define ADA_STR | ( | x | ) |
Definition at line 187 of file common_defs.h.
#define ADA_TRY | ( | EXPR | ) |
If EXPR is an error, returns it.
Definition at line 132 of file common_defs.h.
#define ada_unused __attribute__((unused)) |
Definition at line 80 of file common_defs.h.
#define ada_warn_unused __attribute__((warn_unused_result)) |
Definition at line 81 of file common_defs.h.