summaryrefslogtreecommitdiff
path: root/test/example/c-api-unused-mem.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Provide AddImport/AddExport for each element in the C-API (#1292)Daniel Wirtz2017-11-221-2/+2
| | | | * Provide AddImport/AddExport for each element in the C-API
* Update binaryen-c/binaryen.js, fixes #1028, fixes #1029 (#1030)Daniel Wirtz2017-06-071-5/+5
| | | This PR adds global variable support (addGlobal, getGlobal, setGlobal), host operations (currentMemory, growMemory), a few utility functions (removeImport, removeExport, getFunctionTypeBySignature with the latter being scheduled for removal once a better alternative is in place) and it introduces an additional argument to specify the result type in BinaryenBlock (effectively breaking the C-API but retaining previous behaviour by introducing the BinaryenUndefined() type for this purpose). Additionally, it enables compilation with exception support in build-js.sh as exceptions are thrown and caught when optimizing endless loops, intentionally resulting in an unreachable opcode. Affected test cases have been updated accordingly.
* mark memory as existing when it is created in the C APIAlon Zakai (kripken)2017-01-041-0/+93