2 Star 0 Fork 0

mirrors_android_source/bindgen

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
extra_assertions.rs 570 Bytes
一键复制 编辑 原始数据 按行查看 历史
Andrew Walbran 提交于 2023-11-21 03:10 +08:00 . Upgrade bindgen to 0.69.1
//! Macros for defining extra assertions that should only be checked in testing
//! and/or CI when the `__testing_only_extra_assertions` feature is enabled.
/// Simple macro that forwards to assert! when using
/// __testing_only_extra_assertions.
macro_rules! extra_assert {
( $cond:expr ) => {
if cfg!(feature = "__testing_only_extra_assertions") {
assert!($cond);
}
};
( $cond:expr , $( $arg:tt )+ ) => {
if cfg!(feature = "__testing_only_extra_assertions") {
assert!($cond, $( $arg )* )
}
};
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_android_source/bindgen.git
git@gitee.com:mirrors_android_source/bindgen.git
mirrors_android_source
bindgen
bindgen
main

搜索帮助