Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <v8pp/context.hpp>
- #include <libplatform/libplatform.h>
- #include <v8.h>
- int main()
- {
- v8::V8::InitializeExternalStartupData(__argv[0]);
- auto platform = v8::platform::NewDefaultPlatform();
- v8::V8::InitializePlatform(platform.get());
- v8::V8::Initialize();
- v8pp::context context;
- v8::HandleScope handleScope(context.isolate());
- std::cout << "Hello World!\n";
- v8::V8::Dispose();
- v8::V8::ShutdownPlatform();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement