Page 1 of 1

Macro bug?

Posted: Thu Dec 04, 2025 11:45 am
by Joubarbe

Code: Select all

Enumeration BUTTON
  #_BUTTON_LEFT
  #_BUTTON_MIDDLE
  #_BUTTON_RIGHT
EndEnumeration
Macro TYPE_BUTTON : i : EndMacro

Structure _Mouse
  button.i
EndStructure

Global mouse._Mouse

Procedure IsPushed(button.TYPE_BUTTON) : With mouse
  
EndWith : EndProcedure
PB doesn't seem to like that there is a macro and a "with" on the same line. But it should work, no?

Re: Macro bug?

Posted: Thu Dec 04, 2025 12:04 pm
by BarryG
I'd expect it to work, yes. Because it does if you split it onto single lines, as you noted.

Re: Macro bug?

Posted: Thu Dec 04, 2025 12:37 pm
by Joubarbe