Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstring>
- #include <cstdlib>
- #include <v8.h>
- using namespace v8;
- extern "C" {
- char * hello() {
- // Get the default Isolate created at startup.
- Isolate* isolate = Isolate::GetCurrent();
- // Create a stack-allocated handle scope.
- HandleScope handle_scope(isolate);
- return "Hello, World!";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement