extern variables and object-like macro consts
This commit is contained in:
@@ -161,10 +161,13 @@ Function :: struct {
|
||||
|
||||
Global :: struct {
|
||||
name: symbol.Id,
|
||||
link_name: string,
|
||||
type: types.Type,
|
||||
expr: Expr_Id,
|
||||
static_value: i64,
|
||||
is_static: bool,
|
||||
external: bool,
|
||||
writable: bool,
|
||||
dependencies: [dynamic]Global_Id,
|
||||
calls: []Function_Id,
|
||||
direct_problem: bool,
|
||||
@@ -210,6 +213,7 @@ destroy_module :: proc(module: ^Module) {
|
||||
delete(function.calls, module.allocator)
|
||||
}
|
||||
for global in module.globals {
|
||||
delete(global.link_name, module.allocator)
|
||||
delete(global.dependencies)
|
||||
delete(global.calls, module.allocator)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user