mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fixed bug that would intermittently arise from multiple contexts having the same pointer (should preferably be fixed in a different way later). Free all the arenas before codegen. Change "next" to "nextcase". Allow missing function parameters. Add "inline" structs.
This commit is contained in:
@@ -12,7 +12,7 @@ func void test(int i)
|
||||
{
|
||||
case 1:
|
||||
defer test2();
|
||||
if (b) next;
|
||||
if (b) nextcase;
|
||||
test1();
|
||||
case 2:
|
||||
test1();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
enum EnumWithErrorWithMissingName : int (int) // #error: function parameter must be named
|
||||
enum EnumWithErrorWithMissingName : int (int) // #error: The parameter must be named
|
||||
{
|
||||
TEST
|
||||
}
|
||||
@@ -9,7 +9,7 @@ enum EnumWithErrorData : int (int // #error: end of the parameter list
|
||||
TEST
|
||||
}
|
||||
|
||||
enum EnumWithErrorData2 : int (int, int bar) // #error: function parameter must be named
|
||||
enum EnumWithErrorData2 : int (int, int bar) // #error: The parameter must be named
|
||||
{
|
||||
TEST
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user