mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-16 16:01:26 -07:00
type_info_of; enum_value_to_string and string_to_enum_value
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user