Re: [gtk-list] Re: Dumb question about GTK--
- From: Tero Pulkkinen <terop students cc tut fi>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Dumb question about GTK--
- Date: 25 Mar 1998 21:14:36 +0200
Tero Pulkkinen <terop@students.cc.tut.fi> writes:
> // the c++ magic to specify something that C does automatically for all enums.
> #ifdef __cplusplus
> GdkEventMask operator|(GdkEventMask a, GdkEventMask b) {
> return (GdkEventMask)(a|b);
> }
> GdkEventMask operator&(GdkEventMask a, GdkEventMask b) {
> return (GdkEventMask)(a&b);
> }
> #endif
oops, this doesnt work :)
needs to be:
return (GdkEventMask)( (int)a | (int)b );
(otherwise it does infinite recursion :)
--
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]