Skip to content

Instantly share code, notes, and snippets.

@BrandonDyer64
Last active August 18, 2018 07:20
Show Gist options
  • Save BrandonDyer64/a0cd502d5fef26bee16e6ed9a94b5c96 to your computer and use it in GitHub Desktop.
Save BrandonDyer64/a0cd502d5fef26bee16e6ed9a94b5c96 to your computer and use it in GitHub Desktop.
require('wcpp').sync()
// Require our module
const addTwo = require('./addTwo.cpp')
// Run our C++ function
console.log('2 + 3 = ' + addTwo(2, 3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment