breaking,vlib: update handling of imports whose symbols are not directly used in imported file, remove pub const is_used = 1 workarounds (#21160)

This commit is contained in:
Turiiya 2024-04-01 21:07:05 +02:00 committed by GitHub
parent 97e1b24d30
commit c086bee5be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 30 additions and 102 deletions

View file

@ -1,4 +1,3 @@
import sokol
import sokol.sapp
import sokol.gfx
import sokol.sgl
@ -7,8 +6,6 @@ struct AppState {
pass_action gfx.PassAction
}
const used_import = sokol.used_import
fn main() {
state := &AppState{
pass_action: gfx.create_clear_pass_action(0.1, 0.1, 0.1, 1.0)

View file

@ -3,14 +3,11 @@
module main
import time
import sokol
import sokol.sapp
import sokol.gfx
import sokol.sgl
import particle
const used_import = sokol.used_import
fn main() {
mut app := &App{
width: 800