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

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

Issue 29421701: Issue 5185 - [emscripten] More compact definition of class prototypes (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created April 25, 2017, 2:13 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 | « no previous file | compiled/bindings/generator.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-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
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 void register_method(TYPEID classID, const char* name, 203 void register_method(TYPEID classID, const char* name,
204 const FunctionInfo& call); 204 const FunctionInfo& call);
205 205
206 void register_differentiator(TYPEID classID, size_t offset, 206 void register_differentiator(TYPEID classID, size_t offset,
207 std::vector<std::pair<int, std::string>>& mapping); 207 std::vector<std::pair<int, std::string>>& mapping);
208 208
209 const std::string generateCall(const FunctionInfo& call, 209 const std::string generateCall(const FunctionInfo& call,
210 std::vector<std::string>& params); 210 std::vector<std::string>& params);
211 211
212 const std::string wrapCall(const FunctionInfo& call); 212 const std::string wrapCall(const FunctionInfo& call, bool isFunction = true);
hub 2017/04/25 18:24:58 since we return a copy, do we really need the "con
Wladimir Palant 2017/04/26 05:52:55 The "const" modifier in C++ is really weird. Hey,
213 213
214 std::string generatePropertyDescriptor(const PropertyInfo& property); 214 std::string generatePropertyDescriptor(const PropertyInfo& property);
215 215
216 void printHelpers(); 216 void printHelpers();
217 217
218 void printClass(const ClassInfo& cls); 218 void printClass(const ClassInfo& cls);
219 } 219 }
220 220
221 template<typename ClassType, 221 template<typename ClassType,
222 typename BaseClass = bindings_internal::NoBaseClass, 222 typename BaseClass = bindings_internal::NoBaseClass,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 for (const auto& item : list) 293 for (const auto& item : list)
294 mapping.emplace_back(item.first, item.second); 294 mapping.emplace_back(item.first, item.second);
295 295
296 bindings_internal::register_differentiator( 296 bindings_internal::register_differentiator(
297 bindings_internal::TypeInfo<ClassType>(), offset, mapping); 297 bindings_internal::TypeInfo<ClassType>(), offset, mapping);
298 return *this; 298 return *this;
299 } 299 }
300 }; 300 };
301 301
302 void printBindings(); 302 void printBindings();
OLDNEW
« no previous file with comments | « no previous file | compiled/bindings/generator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld