Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: compiled/bindings/generator.h

Issue 29613616: Issue 6064 - Put C++ code into a configurable namespace (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git
Patch Set: rebase Created Feb. 6, 2018, 9:54 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 "../base.h"
29 #include "../String.h" 30 #include "../String.h"
30 #include "../intrusive_ptr.h" 31 #include "../intrusive_ptr.h"
31 32
33 ABP_NS_BEGIN
34
32 namespace bindings_internal 35 namespace bindings_internal
33 { 36 {
34 typedef void* TYPEID; 37 typedef void* TYPEID;
35 38
36 enum class TypeCategory 39 enum class TypeCategory
37 { 40 {
38 UNKNOWN, 41 UNKNOWN,
39 VOID, 42 VOID,
40 INT, 43 INT,
41 INT64, 44 INT64,
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 template<typename ReturnType, typename... Args> 336 template<typename ReturnType, typename... Args>
334 const singleton& function(const char* name, ReturnType (ClassType::*method)(Ar gs...) const) const 337 const singleton& function(const char* name, ReturnType (ClassType::*method)(Ar gs...) const) const
335 { 338 {
336 bindings_internal::register_method( 339 bindings_internal::register_method(
337 bindings_internal::TypeInfo<ClassType>(), name, method); 340 bindings_internal::TypeInfo<ClassType>(), name, method);
338 return *this; 341 return *this;
339 } 342 }
340 }; 343 };
341 344
342 void printBindings(); 345 void printBindings();
346
347 ABP_NS_END
OLDNEW
« compiled/base.h ('K') | « compiled/base.h ('k') | compiled/bindings/generator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld