chore: move __c_cpp/* to __ffi

This commit is contained in:
2020-10-17 16:07:46 +08:00
parent 754ff1ed60
commit a9df08bc6d
11 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
var ffi = require('ffi');
var stringtools = ffi.Library('target/debug/libstringtools.dylib', {
'count_substrings': ['int', ['string', 'string']]
});
console.log(stringtools.count_substrings("banana", "na"));