test modsfocation

re_alloc() function thread safe checking
Preprocessor macros editing

Return statment now out of the preprocessor macros. No inline functions.