mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-23 19:51:47 +00:00
Make TLSF always align to 8 bytes, see #15
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
///////////////////////// Emscripten Memory Allocator //////////////////////////
|
||||
|
||||
// Uses Emscripten's exported _malloc and _free implementations, i.e., when
|
||||
// linking with Emscripten-compiled programs that already provide these.
|
||||
// Differs from 'system' in that their names are prefixed with an underscore.
|
||||
/**
|
||||
* @file Emscripten Memory Allocator
|
||||
*
|
||||
* Uses Emscripten's exported _malloc and _free implementations, i.e., when linking with
|
||||
* Emscripten-compiled programs that already provide these. Differs from 'system' in that their
|
||||
* names are prefixed with an underscore.
|
||||
*/
|
||||
|
||||
declare function _malloc(size: usize): usize;
|
||||
declare function _free(ptr: usize): void;
|
||||
|
Reference in New Issue
Block a user