From 9296b21b87eec3f01bee465fcb2b64c4ea14514b Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 10 Jun 2018 14:18:15 +0200 Subject: Use C linkage in deno.h --- deno2/main.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'deno2/main.cc') diff --git a/deno2/main.cc b/deno2/main.cc index 29aacc4e6..d16dd44ba 100644 --- a/deno2/main.cc +++ b/deno2/main.cc @@ -6,12 +6,12 @@ #include "include/deno.h" int main(int argc, char** argv) { - deno::v8_init(); + deno_init(); - deno::Deno* d = deno::from_snapshot(NULL, NULL); - int r = deno::deno_load(d, "main2.js", "foo();"); + Deno* d = deno_new(NULL, NULL); + int r = deno_load(d, "main2.js", "foo();"); if (r != 0) { - printf("Error! %s\n", deno::deno_last_exception(d)); + printf("Error! %s\n", deno_last_exception(d)); exit(1); } } -- cgit v1.2.3