mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 19:30:06 +00:00
Comment based build tags for packages (basic and temporary)
This commit is contained in:
@@ -47,6 +47,16 @@ free_map :: proc(m: $T/map[$K]$V, loc := #caller_location) {
|
||||
free_ptr(raw.entries.data, loc);
|
||||
}
|
||||
|
||||
free :: proc[
|
||||
free_ptr,
|
||||
free_string,
|
||||
free_cstring,
|
||||
free_dynamic_array,
|
||||
free_slice,
|
||||
free_map,
|
||||
];
|
||||
|
||||
|
||||
|
||||
|
||||
default_resize_align :: proc(old_memory: rawptr, old_size, new_size, alignment: int, loc := #caller_location) -> rawptr {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// +build windows
|
||||
package os
|
||||
|
||||
import "core:sys/win32"
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// This is the runtime code required by the compiler
|
||||
// IMPORTANT NOTE(bill): Do not change the order of any of this data
|
||||
// The compiler relies upon this _exact_ order
|
||||
package runtime
|
||||
|
||||
import "core:os"
|
||||
@@ -30,8 +33,6 @@ Calling_Convention :: enum {
|
||||
Std = 4,
|
||||
Fast = 5,
|
||||
}
|
||||
// IMPORTANT NOTE(bill): Do not change the order of any of this data
|
||||
// The compiler relies upon this _exact_ order
|
||||
|
||||
Type_Info_Enum_Value :: union {
|
||||
rune,
|
||||
|
||||
Reference in New Issue
Block a user