Can you replace this preprocessor usage by a function call with the static inline specifiers? Will be easier to debug.