all: various fixes for [heap]/auto-heap handling (#10033)

This commit is contained in:
Uwe Krüger 2021-05-07 14:58:48 +02:00 committed by GitHub
parent 5b4eef8010
commit d26ac5692e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 279 additions and 149 deletions

View file

@ -16,6 +16,7 @@ const (
orange = ui.Color{255, 140, 0}
)
[heap]
struct App {
mut:
tui &ui.Context = 0
@ -238,6 +239,7 @@ fn (mut b Ball) update(dt f32) {
b.pos.y += b.vel.y * b.acc.y * dt
}
[heap]
struct Game {
mut:
app &App = 0

View file

@ -256,6 +256,7 @@ fn (mut r Rat) randomize() {
r.app.height - block_size - buffer)
}
[heap]
struct App {
mut:
termui &termui.Context = 0