How can I work around this? (without knowing the what the other did)
I had done something like: Enumeration #PB_EventType_FirstCustomValue+1000, but this leaves open manual collisions by chance.
DeclareModule common
Enumeration EnumEventType #PB_EventType_FirstCustomValue
EndEnumeration
EndDeclareModule
Module common
EndModule
DeclareModule abc
UseModule common
Declare xyz()
EndDeclareModule
Module abc
Enumeration EnumEventType
#something
EndEnumeration
Procedure xyz()
ProcedureReturn #something
EndProcedure
EndModule
UseModule common
Enumeration EnumEventType
#somethingelse
EndEnumeration
Debug #somethingelse
Debug abc::xyz()
If you are using modules from other authors, you can edit the source to implement this
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom
English is not my native language... (I often use DeepL.)