diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-19 14:01:56 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-19 14:01:56 +0100 |
| commit | f1ab17ed4ef68a7591f8aa786e3c02d33d038f05 (patch) | |
| tree | fe2313c560196c80fbfb114641fa5364d3bafb57 /code | |
| parent | 6113164211d5bd010ea324594d69668e5732817d (diff) | |
`type_info_of`; enum_value_to_string and string_to_enum_value
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/code/demo.odin b/code/demo.odin index 4b88bfea1..ce2a160a1 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -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); } |