Update switch
All checks were successful
All checks were successful
This commit is contained in:
parent
408d53a6f9
commit
d2e488edb1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user