mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
28a083633c
This allows people to export some functions, such as malloc. Example:
// #cgo LDFLAGS: --export=malloc
import "C"
This exports the function malloc.
Note that this is somewhat unsafe right now, but it is used regardless.
By using this workaround, people have some time to transition away from
using malloc/free directly or until malloc is made safe to be used in
this way.