Comment based build tags for packages (basic and temporary)

This commit is contained in:
gingerBill
2018-05-28 20:59:06 +01:00
parent 619783ca1b
commit 6eb505a677
9 changed files with 106 additions and 16 deletions
+10
View File
@@ -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
View File
@@ -1,3 +1,4 @@
// +build windows
package os
import "core:sys/win32"
+3 -2
View File
@@ -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,