Update stdlib with new syntax for short function decl.

This commit is contained in:
Christoffer Lerno
2025-02-08 23:04:59 +01:00
parent c4f9efc8f5
commit e1d546225f
16 changed files with 335 additions and 417 deletions

View File

@@ -70,12 +70,9 @@ fn void CsvRow.free(&self)
self.allocator = null;
}
fn void! CsvReader.skip_row(self) @maydiscard
fn void! CsvReader.skip_row(self) @maydiscard => @pool()
{
@pool()
{
(void)io::treadline(self.stream);
};
(void)io::treadline(self.stream);
}
macro void! CsvReader.@each_row(self, int rows = int.max; @body(String[] row)) @maydiscard