io interface (first pass)
This commit is contained in:
@@ -259,6 +259,8 @@ Module :: struct {
|
||||
functions: [dynamic]Function,
|
||||
globals: [dynamic]Global,
|
||||
strings: [dynamic]string,
|
||||
injected_main: Function_Id,
|
||||
io_provider: Function_Id,
|
||||
types: types.Store,
|
||||
target: target.Target,
|
||||
allocator: mem.Allocator,
|
||||
@@ -267,6 +269,8 @@ Module :: struct {
|
||||
init_module :: proc(selected := target.DEFAULT, allocator := context.allocator) -> Module {
|
||||
module: Module
|
||||
module.target = selected
|
||||
module.injected_main = INVALID_FUNCTION
|
||||
module.io_provider = INVALID_FUNCTION
|
||||
module.types = types.init_store(allocator)
|
||||
module.types.selected = selected
|
||||
module.allocator = allocator
|
||||
|
||||
Reference in New Issue
Block a user