diff options
author | chatty | 1993-07-26 16:05:03 +0000 |
---|---|---|
committer | chatty | 1993-07-26 16:05:03 +0000 |
commit | f8fb87ef28da3e35e7bef998161fbda62b511d6d (patch) | |
tree | 48069a015d79899072f3071fd45e0ace68ffbf1d | |
parent | 4068e7bb6e42d94f2f2b14c1667e77b9d19ce9b6 (diff) | |
download | ivy-league-f8fb87ef28da3e35e7bef998161fbda62b511d6d.zip ivy-league-f8fb87ef28da3e35e7bef998161fbda62b511d6d.tar.gz ivy-league-f8fb87ef28da3e35e7bef998161fbda62b511d6d.tar.bz2 ivy-league-f8fb87ef28da3e35e7bef998161fbda62b511d6d.tar.xz |
Handle CPLUS_BUG19
-rw-r--r-- | comm/OLD/Service.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/comm/OLD/Service.h b/comm/OLD/Service.h index b97a6cf..15ca5ad 100644 --- a/comm/OLD/Service.h +++ b/comm/OLD/Service.h @@ -60,17 +60,30 @@ inline UchMessage* GetMsg () { return Msg; } class UchEvtMsgQueue : public CcuSmartData { protected: +#ifndef CPLUS_BUG19 CcuListOf <UchEventMsg> Queue; +#else + CcuList Queue; +#endif public: UchEvtMsgQueue (); ~UchEvtMsgQueue (); inline void Put (UchEventMsg* m) { Queue.Append (m); } +#ifndef CPLUS_BUG19 inline UchEventMsg* Peek () { return Queue.First (); } inline UchEventMsg* Get () { return Queue.RemoveFirst (); } +#else +inline UchEventMsg* Peek () { return (UchEventMsg*) Queue.First (); } +inline UchEventMsg* Get () { return (UchEventMsg*) Queue.RemoveFirst (); } +#endif inline void PutBack (UchEventMsg* m) { Queue.Prepend (m); } +#ifndef CPLUS_BUG19 inline operator const CcuListOf <UchEventMsg>& () const { return Queue; } +#else +inline operator const CcuList& () const { return Queue; } +#endif }; PointerClass (pUchEvtMsgQueue, UchEvtMsgQueue) |