r4607: add some usefull macros to make the code more readable