summaryrefslogtreecommitdiff
path: root/deno2/main.cc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-06-10 14:18:15 +0200
committerRyan Dahl <ry@tinyclouds.org>2018-06-10 14:18:15 +0200
commit9296b21b87eec3f01bee465fcb2b64c4ea14514b (patch)
tree9ad1d353de6ffce438fd631b60204b0fc5563a71 /deno2/main.cc
parenta6880dad6534ee9e1637c5098698cf32a4f1527e (diff)
Use C linkage in deno.h
Diffstat (limited to 'deno2/main.cc')
-rw-r--r--deno2/main.cc8
1 files changed, 4 insertions, 4 deletions
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);
}
}