| Index: include/AdblockPlus/Platform.h |
| =================================================================== |
| --- a/include/AdblockPlus/Platform.h |
| +++ b/include/AdblockPlus/Platform.h |
| @@ -31,7 +31,12 @@ |
| namespace AdblockPlus |
| { |
| struct IV8IsolateProvider; |
| - class JsEngine; |
| + |
| + template <class T> class JsEngineTemplate; |
| +#ifndef JSENGINEIMPL |
| +#define JSENGINEIMPL JsEngineTemplate<JsEngineNamespaceImpl> |
| +#endif // !JSENGINEIMPL |
| + typedef JSENGINEIMPL JsEngine; |
| /** |
| * AdblockPlus platform is the main component providing access to other |
| @@ -87,7 +92,7 @@ |
| * Retrieves the `JsEngine` instance. It calls SetUpJsEngine if JsEngine is |
| * not initialized yet. |
| */ |
| - JsEngine& GetJsEngine(); |
| + JsEngineTemplate<JsEngineNamespaceImpl>& GetJsEngine(); |
| /** |
| * Ensures that FilterEngine is constructed. Only the first call is effective. |