OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-present eyeo GmbH | 3 * Copyright (C) 2006-present eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 static void error(const String& str) | 43 static void error(const String& str) |
44 { | 44 { |
45 LogError(str); | 45 LogError(str); |
46 } | 46 } |
47 }; | 47 }; |
48 | 48 |
49 ABP_NS_END | 49 ABP_NS_END |
50 | 50 |
51 #if defined(DEBUG) | 51 #if defined(DEBUG) |
52 inline void assert2(bool condition, const String& str) | 52 inline void assert2(bool condition, const ABP_NS::String& str) |
53 { | 53 { |
54 if (!condition) | 54 if (!condition) |
55 ABP_NS::console_type::error(str); | 55 ABP_NS::console_type::error(str); |
56 } | 56 } |
57 #else | 57 #else |
58 #define assert2(condition, str) | 58 #define assert2(condition, str) |
59 #endif | 59 #endif |
60 | 60 |
61 #if defined(__EMSCRIPTEN_TRACING__) | 61 #if defined(__EMSCRIPTEN_TRACING__) |
62 #include <emscripten/trace.h> | 62 #include <emscripten/trace.h> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 { | 110 { |
111 } | 111 } |
112 | 112 |
113 inline void exit_context() | 113 inline void exit_context() |
114 { | 114 { |
115 } | 115 } |
116 | 116 |
117 ABP_NS_END | 117 ABP_NS_END |
118 | 118 |
119 #endif // defined(__EMSCRIPTEN_TRACING__) | 119 #endif // defined(__EMSCRIPTEN_TRACING__) |
OLD | NEW |