github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/imports/emscripten/testdata/grow.cc (about) 1 #include <stdlib.h> 2 #include <cstdint> // for uint8_t 3 4 uint8_t *mem; 5 6 int main() { 7 mem = (uint8_t *) malloc(64 * 1024 + 1); 8 if (mem == NULL) { 9 return 1; 10 } else { 11 return 0; 12 } 13 }