Update switch
All checks were successful
CI / ci (ReleaseFast, ubuntu-latest) (push) Successful in 2m3s
CI / ci (ReleaseSmall, ubuntu-latest) (push) Successful in 2m2s
CI / ci (ReleaseSafe, ubuntu-latest) (push) Successful in 2m11s
CI / ci (Debug, ubuntu-latest) (push) Successful in 3m11s

This commit is contained in:
David Gonzalez Martin 2025-04-17 12:13:08 -06:00
parent 408d53a6f9
commit d2e488edb1

View File

@ -242,8 +242,17 @@ CompilerCommand = enum
>command_string = c_string_to_slice(argv[1]);
> a = #string_to_enum(CompilerCommand, command_string);
> command_string_to_enum = #string_to_enum(CompilerCommand, command_string);
if (!command_string_to_enum.is_valid)
{
return 1;
}
>command = command_string_to_enum.enum_value;
switch (command)
{
.compile =>
{
>relative_file_path_pointer = argv[2];
if (!relative_file_path_pointer)
{
@ -267,6 +276,13 @@ CompilerCommand = enum
{
return 1;
}
},
.test =>
{
// TODO
#trap();
},
}
return 0;
}