aboutsummaryrefslogtreecommitdiff
path: root/demos/scons-embind/test.js
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-05-17 12:52:32 -0700
committerChad Austin <chad@imvu.com>2013-05-17 13:04:09 -0700
commit184ff9ea2d18c09988226afb90328679e9818d0d (patch)
tree876b10b0db3ea1d44c45152c735fe6d488110411 /demos/scons-embind/test.js
parentec19fe482bf564de68a076ed093af131d502bb30 (diff)
Add a demo that showcases using scons to build an embind library you can load from JavaScript.
Diffstat (limited to 'demos/scons-embind/test.js')
-rw-r--r--demos/scons-embind/test.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/scons-embind/test.js b/demos/scons-embind/test.js
new file mode 100644
index 00000000..a6252fd8
--- /dev/null
+++ b/demos/scons-embind/test.js
@@ -0,0 +1,2 @@
+var thelibrary = require('./build/thelibrary.js');
+thelibrary.Module.print_some_stuff(1, 2, 'hello world');