| 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-2017 eyeo GmbH | 3 * Copyright (C) 2006-2017 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 |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
| 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| 16 */ | 16 */ |
| 17 | 17 |
| 18 #pragma once | 18 #pragma once |
| 19 | 19 |
| 20 #include <cstddef> | 20 #include <cstddef> |
| 21 #include <cstdint> | 21 #include <cstdint> |
| 22 #include <cstdlib> | 22 #include <cstdlib> |
| 23 #include <functional> | 23 #include <functional> |
| 24 #include <string> | 24 #include <string> |
| 25 #include <type_traits> | 25 #include <type_traits> |
| 26 #include <utility> | 26 #include <utility> |
| 27 #include <vector> | 27 #include <vector> |
| 28 | 28 |
| 29 #include <emscripten.h> | |
| 30 | |
| 31 #include "../String.h" | 29 #include "../String.h" |
| 32 #include "../intrusive_ptr.h" | 30 #include "../intrusive_ptr.h" |
| 33 | 31 |
| 34 namespace bindings_internal | 32 namespace bindings_internal |
| 35 { | 33 { |
| 36 typedef void* TYPEID; | 34 typedef void* TYPEID; |
| 37 | 35 |
| 38 enum class TypeCategory | 36 enum class TypeCategory |
| 39 { | 37 { |
| 40 UNKNOWN, | 38 UNKNOWN, |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 for (const auto& item : list) | 289 for (const auto& item : list) |
| 292 mapping.emplace_back(item.first, item.second); | 290 mapping.emplace_back(item.first, item.second); |
| 293 | 291 |
| 294 bindings_internal::register_differentiator( | 292 bindings_internal::register_differentiator( |
| 295 bindings_internal::TypeInfo<ClassType>(), offset, mapping); | 293 bindings_internal::TypeInfo<ClassType>(), offset, mapping); |
| 296 return *this; | 294 return *this; |
| 297 } | 295 } |
| 298 }; | 296 }; |
| 299 | 297 |
| 300 void printBindings(); | 298 void printBindings(); |
| OLD | NEW |