type_info_of; enum_value_to_string and string_to_enum_value

This commit is contained in:
Ginger Bill
2017-07-19 14:01:56 +01:00
parent 6113164211
commit f1ab17ed4e
8 changed files with 123 additions and 93 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import "fmt.odin";
main :: proc() {
fmt.println("Hellope!");
v, ok := fmt.string_to_enum_value(Allocator.Mode, "FreeAll");
if ok do assert(v == Allocator.Mode.FreeAll);
}