padded_string asm macro: Fix labels not being local, resulting in error if macro used 2+ times
.macro padded_string string, max
-
-before_padded_string:
+ 1:
.ascii "\string"
-after_padded_string:
-.ifle \max - (after_padded_string - before_padded_string)
+ 2:
+ .ifle \max - (2b - 1b)
.error "String too long"
.endif
-.ifgt \max - (after_padded_string - before_padded_string)
-.zero \max - (after_padded_string - before_padded_string)
+ .ifgt \max - (2b - 1b)
+ .zero \max - (2b - 1b)
.endif
-
.endm
