Replace some macros with OF_INLINE functions.
This way, there won't be a warning about unused results.