We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
函数很简单,能够提供一点便利,毕竟函数的调用比写宏更加快捷而且不易出错。
声明:
/** 只在debug模式下运行的函数 @param debug debug操作 */ FOUNDATION_EXTERN void ax_debug_only(void (^debug)());
实现:
inline void ax_debug_only(void (^debug)()){ #ifdef DEBUG if (debug) { debug(); } #endif }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
#if DEBUG的简单封装
函数很简单,能够提供一点便利,毕竟函数的调用比写宏更加快捷而且不易出错。
声明:
实现:
The text was updated successfully, but these errors were encountered: