RaiseError() Cross-Platform Consistency

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
grabiller
Enthusiast
Enthusiast
Posts: 309
Joined: Wed Jun 01, 2011 9:38 am
Location: France - 89220 Rogny-Les-Septs-Ecluses
Contact:

RaiseError() Cross-Platform Consistency

Post by grabiller »

Hello,

Would be nice to have a consistent cross-platforms RaiseError(), meaning with the ability to use custom errors, not only on Windows but also on Linux and Mac OSX.

Cheers,
Guy.
Last edited by grabiller on Mon Sep 28, 2015 7:36 am, edited 1 time in total.
guy rabiller | radfac founder / ceo | raafal.org
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: PosEvent() Cross-Platform Consistency

Post by wilbert »

PostEvent is supported on all platforms so I'm not sure what you are requesting. :?
Windows (x64)
Raspberry Pi OS (Arm64)
User avatar
grabiller
Enthusiast
Enthusiast
Posts: 309
Joined: Wed Jun 01, 2011 9:38 am
Location: France - 89220 Rogny-Les-Septs-Ecluses
Contact:

Re: RaiseError() Cross-Platform Consistency

Post by grabiller »

Oops, I wrote PostEvent() but I meant RaiseError().. Monday morning.. I'll update the Title..

On Linux and Mac OSX, only 5 values are accepted while on Windows 0 to 268435455 are possible.

While I understand this function is certainly close to the native OS it would be nice to have it allowing custom errors on the 3 platforms, even if it means encapsulating the original function somehow.

Cheers,
Guy.
guy rabiller | radfac founder / ceo | raafal.org
Post Reply