]> git.kaiwu.me - quickjs.git/commit
Use malloc_usable_size() on any OS based on GNU libc
authorPino Toscano <toscano.pino@tiscali.it>
Sun, 9 Jun 2024 07:18:38 +0000 (09:18 +0200)
committerCharlie Gordon <github@chqrlie.org>
Sun, 21 Jul 2024 08:24:01 +0000 (10:24 +0200)
commit34894936d8ce394efa1aba7146f6cf75ad24edfe
tree023b38372126b76f6f1dd7ea1a3c41a809c1d762
parent5417ab0159fc48c217ff91344a833d3286b8895d
Use malloc_usable_size() on any OS based on GNU libc

malloc_usable_size() is a GNU extension in GNU libc; hence, use it
every time GNU libc is used, rather than only on Linux.
qjs.c
quickjs.c