|
| 1 | +/* |
| 2 | + * Copyright (C) 2020 Adrian Carpenter |
| 3 | + * |
| 4 | + * This file is part of a regex101.com offline application. |
| 5 | + * |
| 6 | + * https://github.com/fizzyade/regex101 |
| 7 | + * |
| 8 | + * ===================================================================== |
| 9 | + * The regex101 web content is owned and used with permission from |
| 10 | + * Firas Dib at regex101.com. This application is an unofficial |
| 11 | + * tool to provide an offline application version of the website. |
| 12 | + * ===================================================================== |
| 13 | + * |
| 14 | + * This program is free software: you can redistribute it and/or modify |
| 15 | + * it under the terms of the GNU General Public License as published by |
| 16 | + * the Free Software Foundation, either version 3 of the License, or |
| 17 | + * (at your option) any later version. |
| 18 | + * |
| 19 | + * This program is distributed in the hope that it will be useful, |
| 20 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | + * GNU General Public License for more details. |
| 23 | + * |
| 24 | + * You should have received a copy of the GNU General Public License |
| 25 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 26 | + */ |
| 27 | + |
| 28 | +#include "Cloner.h" |
| 29 | +/*#include "node.h" |
| 30 | +
|
| 31 | +#include <QDebug> |
| 32 | +
|
| 33 | +using node::ArrayBufferAllocator; |
| 34 | +using node::Environment; |
| 35 | +using node::IsolateData; |
| 36 | +using node::MultiIsolatePlatform; |
| 37 | +using v8::Context; |
| 38 | +using v8::HandleScope; |
| 39 | +using v8::Isolate; |
| 40 | +using v8::Local; |
| 41 | +using v8::Locker; |
| 42 | +using v8::MaybeLocal; |
| 43 | +using v8::SealHandleScope; |
| 44 | +using v8::V8; |
| 45 | +using v8::Value; |
| 46 | +*/ |
| 47 | +Nedrysoft::Cloner::Cloner() |
| 48 | +{ |
| 49 | +/* argv = uv_setup_args(0, 0); |
| 50 | +
|
| 51 | + std::vector<std::string> args(argv, argv + argc); |
| 52 | + std::vector<std::string> exec_args; |
| 53 | + std::vector<std::string> errors; |
| 54 | +
|
| 55 | + int exit_code = node::InitializeNodeWithArgs(&args, &exec_args, &errors); |
| 56 | +
|
| 57 | + for (const std::string& error : errors) { |
| 58 | + qDebug() << error.c_str()); |
| 59 | + } |
| 60 | +
|
| 61 | + if (exit_code != 0) { |
| 62 | + qDebug() << "error:" << exit_code; |
| 63 | + } |
| 64 | +
|
| 65 | + std::unique_ptr<MultiIsolatePlatform> platform = MultiIsolatePlatform::Create(4); |
| 66 | +
|
| 67 | + V8::InitializePlatform(platform.get()); |
| 68 | + V8::Initialize();*/ |
| 69 | +} |
0 commit comments