Explorar o código

Need to forward the name of the directive, not the hash token

Fabian Sperber %!s(int64=2) %!d(string=hai) anos
pai
achega
33798b8b80
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/odin/parser/parser.odin

+ 1 - 1
core/odin/parser/parser.odin

@@ -1425,7 +1425,7 @@ parse_stmt :: proc(p: ^Parser) -> ^ast.Stmt {
 			return es
 
 		case "force_inline", "force_no_inline":
-			expr := parse_inlining_operand(p, true, tok)
+			expr := parse_inlining_operand(p, true, tag)
 			es := ast.new(ast.Expr_Stmt, expr.pos, expr.end)
 			es.expr = expr
 			return es