1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: use the [has_globals] module attribute, remove the parser global_enabled_mods whitelist (part 2)

This commit is contained in:
Delyan Angelov
2021-11-16 11:44:36 +02:00
parent f0f5f97e9f
commit 045579fd8a
4 changed files with 7 additions and 13 deletions

View File

@ -1,3 +1,4 @@
[has_globals]
module sapp
import sokol.gfx
@ -5,9 +6,7 @@ import sokol.gfx
pub const used_import = gfx.used_import
// Android needs a global reference to `g_desc`
__global (
g_desc C.sapp_desc
)
__global g_desc C.sapp_desc
pub fn create_desc() C.sg_desc {
metal_desc := C.sg_metal_context_desc{