This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
code to keep you on your toes..
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] code to keep you on your toes..
- From: "Dave Airlie" <airlied at parthus dot com>
- Date: 25 Oct 2000 13:11:06 +0100
While trawling eCos code I found this nice one
#define HAL_THREAD_SWITCH_CONTEXT(_fspptr_,_tspptr_) \
hal_thread_switch_context((CYG_ADDRESS)_tspptr_, \
(CYG_ADDRESS)_fspptr_);
now that code is just plain evil... I'm assuming it is right as nothing
should work if it isn't, but having a function take args backwards to the
macro.. uggh...
I'd like to see that making it through a code review alive.
Dave.
--
David Airlie, Software Engineer, Parthus Technologies plc.,
Mary Rosse Centre, National Tech Park, Limerick, Ireland.
t: +353-61-508116 / f: +353-61-508101 / David.Airlie@parthus.com