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

Side by Side Diff: compiled/bindings/main.cpp

Issue 29613616: Issue 6064 - Put C++ code into a configurable namespace (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git
Patch Set: rebase Created Dec. 12, 2017, 12:45 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « compiled/bindings/generator.cpp ('k') | compiled/bindings/runtime_utils.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 18 matching lines...) Expand all
29 #include "../filter/ElemHideBase.h" 29 #include "../filter/ElemHideBase.h"
30 #include "../filter/ElemHideFilter.h" 30 #include "../filter/ElemHideFilter.h"
31 #include "../filter/ElemHideException.h" 31 #include "../filter/ElemHideException.h"
32 #include "../filter/ElemHideEmulationFilter.h" 32 #include "../filter/ElemHideEmulationFilter.h"
33 #include "../subscription/Subscription.h" 33 #include "../subscription/Subscription.h"
34 #include "../subscription/DownloadableSubscription.h" 34 #include "../subscription/DownloadableSubscription.h"
35 #include "../subscription/UserDefinedSubscription.h" 35 #include "../subscription/UserDefinedSubscription.h"
36 #include "../storage/FilterStorage.h" 36 #include "../storage/FilterStorage.h"
37 #include "../FilterNotifier.h" 37 #include "../FilterNotifier.h"
38 38
39 ABP_NS_USING
40
39 int main() 41 int main()
40 { 42 {
41 try 43 try
42 { 44 {
43 class_<Filter>("Filter") 45 class_<Filter>("Filter")
44 .property("text", &Filter::GetText) 46 .property("text", &Filter::GetText)
45 .function("serialize", &Filter::Serialize) 47 .function("serialize", &Filter::Serialize)
46 .class_function("fromText", &Filter::FromText) 48 .class_function("fromText", &Filter::FromText)
47 .subclass_differentiator(&Filter::mType, { 49 .subclass_differentiator(&Filter::mType, {
48 {Filter::Type::INVALID, "InvalidFilter"}, 50 {Filter::Type::INVALID, "InvalidFilter"},
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 } 152 }
151 catch (const std::exception& e) 153 catch (const std::exception& e)
152 { 154 {
153 EM_ASM_ARGS( 155 EM_ASM_ARGS(
154 console.error("Error occurred generating JavaScript bindings: " + 156 console.error("Error occurred generating JavaScript bindings: " +
155 Module.AsciiToString($0)), e.what() 157 Module.AsciiToString($0)), e.what()
156 ); 158 );
157 return 1; 159 return 1;
158 } 160 }
159 } 161 }
OLDNEW
« no previous file with comments | « compiled/bindings/generator.cpp ('k') | compiled/bindings/runtime_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld