mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 06:53:40 +00:00
all: format code according to Go 1.19 rules
Go 1.19 started reformatting code in a way that makes it more obvious how it will be rendered on pkg.go.dev. It gets it almost right, but not entirely. Therefore, I had to modify some of the comments so that they are formatted correctly.
This commit is contained in:
@@ -18,6 +18,7 @@ var heapptr = heapStart
|
||||
|
||||
// Inlining alloc() speeds things up slightly but bloats the executable by 50%,
|
||||
// see https://github.com/tinygo-org/tinygo/issues/2674. So don't.
|
||||
//
|
||||
//go:noinline
|
||||
func alloc(size uintptr, layout unsafe.Pointer) unsafe.Pointer {
|
||||
// TODO: this can be optimized by not casting between pointers and ints so
|
||||
|
||||
Reference in New Issue
Block a user