Unicode file loading; push_allocator & push_context

This commit is contained in:
Ginger Bill
2016-09-23 14:59:58 +01:00
parent ee0aa7b9de
commit a31bab5aae
19 changed files with 484 additions and 172 deletions
+14 -2
View File
@@ -1,19 +1,31 @@
#import "fmt.odin"
#import "os.odin"
#import "mem.odin"
// #import "http_test.odin" as ht
// #import "game.odin" as game
// #import "punity.odin" as pn
main :: proc() {
arena: mem.Arena
mem.init_arena_from_context(^arena, 1000)
defer mem.free_arena(^arena)
push_allocator mem.arena_allocator(^arena) {
x := new(int)
x^ = 1337
fmt.println(x^)
}
// struct_padding()
// bounds_checking()
// type_introspection()
// any_type()
// crazy_introspection()
namespaces_and_files()
// namespaces_and_files()
// miscellany()
// ht.run()
// game.run()
// {
-1
View File
@@ -33,4 +33,3 @@ thing :: proc() {
thing :: proc() {
println("Hello5!")
}*/