refactor: merge adjacent same-condition preprocessor blocks

Merge consecutive #ifdef PIP_HAS_FILESYSTEM / PIP_INTROSPECTION / PIP_CAN
blocks that had no code between them into a single guarded block.
This commit is contained in:
2026-08-25 17:21:01 +03:00
parent 331ef49991
commit c2e6a9927c
4 changed files with 0 additions and 8 deletions
-2
View File
@@ -732,10 +732,8 @@ void PIObject::dump(const PIString & line_prefix) const {
PICout(PICoutManipulators::AddNewLine) << line_prefix << " }";
PICout(PICoutManipulators::AddNewLine) << line_prefix << "}";
}
#endif // PIP_INTROSPECTION
#ifdef PIP_INTROSPECTION
void dumpApplication(bool with_objects) {
PIMutexLocker _ml(PIObject::mutexObjects());
// printf("dump application ...\n");
-2
View File
@@ -32,10 +32,8 @@
# ifndef PF_CAN
# define PF_CAN AF_CAN
# endif
#endif
#ifdef PIP_CAN
REGISTER_DEVICE(PICAN)
PRIVATE_DEFINITION_START(PICAN)
PIWaitEvent event;
-2
View File
@@ -218,10 +218,8 @@ private:
PIString path_, scan_;
};
#endif // PIP_HAS_FILESYSTEM
#ifdef PIP_HAS_FILESYSTEM
inline bool operator<(const PIFile::FileInfo & v0, const PIFile::FileInfo & v1) {
return (v0.path < v1.path);
}
-2
View File
@@ -362,10 +362,8 @@ private:
llong _size = -1;
PIString prec_str;
};
#endif // PIP_HAS_FILESYSTEM
#ifdef PIP_HAS_FILESYSTEM
//! \relatesalso PICout
//! \~english Output operator to \a PICout.
//! \~russian Оператор вывода в \a PICout.