Skip to content

Commit b1b95ec

Browse files
committed
Conditional compilation in wrapper
1 parent 5f50e6f commit b1b95ec

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/ifcwrap/IfcParseWrapper.i

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,15 @@ private:
294294
if (!storage) {
295295
Py_RETURN_NONE;
296296
}
297+
#ifdef IFOPSH_WITH_ROCKSDB
297298
std::string value;
298299
if (storage->db->Get(storage->ropts, key, &value) != rocksdb::Status::OK()) {
299300
Py_RETURN_NONE;
300301
}
301302
return PyBytes_FromStringAndSize(value.data(), value.size());
303+
#else
304+
Py_RETURN_NONE;
305+
#endif
302306
}
303307

304308
%pythoncode %{

0 commit comments

Comments
 (0)