mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
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:
parent
97e1b24d30
commit
c086bee5be
33 changed files with 30 additions and 102 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue