summaryrefslogtreecommitdiff
path: root/comm/OLD
diff options
context:
space:
mode:
authorchatty1993-07-26 16:05:03 +0000
committerchatty1993-07-26 16:05:03 +0000
commitf8fb87ef28da3e35e7bef998161fbda62b511d6d (patch)
tree48069a015d79899072f3071fd45e0ace68ffbf1d /comm/OLD
parent4068e7bb6e42d94f2f2b14c1667e77b9d19ce9b6 (diff)
downloadivy-league-f8fb87ef28da3e35e7bef998161fbda62b511d6d.zip
ivy-league-f8fb87ef28da3e35e7bef998161fbda62b511d6d.tar.gz
ivy-league-f8fb87ef28da3e35e7bef998161fbda62b511d6d.tar.bz2
ivy-league-f8fb87ef28da3e35e7bef998161fbda62b511d6d.tar.xz
Handle CPLUS_BUG19
Diffstat (limited to 'comm/OLD')
-rw-r--r--comm/OLD/Service.h13
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)