Defined for Enumeration

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Defined for Enumeration

Post by ts-soft »

example pseudocode to show, for what required:

Code: Select all

CompilerIf Defined(myevents, #PB_Enumeration)
  Enumeration myevents
    #gad_1
    #gad_2
  EndEnumeration
CompilerElse
  Enumeration myevents, #PB_EventType_FirstCustomValue 
    #gad_1
    #gad_2
  EndEnumeration
CompilerEndIf
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image