cmake-js / fastcall

fastcall - Fast, dyncall based foreign function interface library for Node.js
https://www.npmjs.com/package/fastcall
Other
201 stars 15 forks source link

support for continous declarations #2

Closed unbornchikken closed 7 years ago

unbornchikken commented 7 years ago

Trailer:

const lib = new fastcall.Library('poo.dll');
lib.declare(
'struct Bar { int a; long b; };' +
'async void storeBar(Bar* b);' +
'async void readBar(Bar* out);' +
'void sayHello();'
);

// ...
lib.interface.sayHello();
yield lib.interface.storeBar(bar);
unbornchikken commented 7 years ago

Done