fn expect(mt: *MacroTranslator, expected_id: CToken.Id) ParseError!void
fn expect(mt: *MacroTranslator, expected_id: CToken.Id) ParseError!void { const next_id = mt.peek(); if (next_id != expected_id and !(expected_id == .identifier and next_id == .extended_identifier)) { try mt.fail( "unable to translate C expr: expected '{s}' instead got '{s}'", .{ expected_id.symbol(), next_id.symbol() }, ); return error.ParseError; } mt.i += 1; }