mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +00:00
Further conditional compilation
This commit is contained in:
@@ -205,9 +205,11 @@ public:
|
|||||||
mutable value_type cached_value_;
|
mutable value_type cached_value_;
|
||||||
|
|
||||||
void check_valid() {
|
void check_valid() {
|
||||||
|
#ifdef WITH_ROCKSDB
|
||||||
if (!it_ || !it_->Valid() || !it_->key().starts_with(prefix_)) {
|
if (!it_ || !it_->Valid() || !it_->key().starts_with(prefix_)) {
|
||||||
it_.reset();
|
it_.reset();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -79,8 +79,10 @@ public:
|
|||||||
|
|
||||||
// Validates the current iterator state.
|
// Validates the current iterator state.
|
||||||
void check_valid() {
|
void check_valid() {
|
||||||
|
#ifdef WITH_ROCKSDB
|
||||||
if (!it_ || !it_->Valid() || !it_->key().starts_with(prefix_))
|
if (!it_ || !it_->Valid() || !it_->key().starts_with(prefix_))
|
||||||
it_.reset();
|
it_.reset();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user