Replace function declarations with macro