mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-16 17:18:56 +00:00
v1.1.1
This commit is contained in:
14
packages/third-party/littlefs/lfs_config.h
vendored
14
packages/third-party/littlefs/lfs_config.h
vendored
@@ -51,20 +51,8 @@ extern "C"
|
||||
#endif
|
||||
|
||||
// Runtime assertions
|
||||
#if !defined(LFS_NO_ASSERT) && defined(RT_DEBUG)
|
||||
#ifndef LFS_NO_ASSERT
|
||||
#define LFS_ASSERT(test) RT_ASSERT(test)
|
||||
|
||||
static bool lfs_mlist_isopen(struct lfs_mlist *head,
|
||||
struct lfs_mlist *node) {
|
||||
for (struct lfs_mlist **p = &head; *p; p = &(*p)->next) {
|
||||
if (*p == (struct lfs_mlist*)node) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
#else
|
||||
#define LFS_ASSERT(test)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user