Re: [AD] [ alleg-Bugs-2333410 ] think of a way to allocate user event type numbers.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 27 Nov 2008, at 17:20, Peter Hull wrote:
On Thu, Nov 27, 2008 at 7:44 AM, SourceForge.net
<noreply@xxxxxxxxxx> wrote:
The alternative is doing something at preprocessor level, like AL_ID:
#define MY_EVENT_TYPE     AL_ID('M','E','V','T')
I think this would be a good way to do it, because we could still use
switch() on it.

I agree, this is probably the way to go. Does this already work or is it something that has to be added still? Might be worth doing for 4.9.7 in that case.

Evert




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/