Macro bug?

Just starting out? Need help? Post your questions and find answers here.
Joubarbe
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Macro bug?

Post 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?
BarryG
Addict
Addict
Posts: 4262
Joined: Thu Apr 18, 2019 8:17 am

Re: Macro bug?

Post by BarryG »

I'd expect it to work, yes. Because it does if you split it onto single lines, as you noted.
Joubarbe
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: Macro bug?

Post by Joubarbe »

Post Reply