In certain cases, users may want to temporarily deactivate PDI's functionality at runtime without modifying the existing code.
Currently, there is no straightforward way to achieve this.
To address this, a proposed solution is to include a separate header file (e.g. pdi_deactivation.h) that would redefine the PDI API with empty functions, disabling PDI's operation while maintaining valid syntax.
Users would only need to add this header file when they wish to temporarily deactivate PDI.
In GitLab by @fxmordant on Sep 25, 2023, 15:54
In certain cases, users may want to temporarily deactivate PDI's functionality at runtime without modifying the existing code. Currently, there is no straightforward way to achieve this.
To address this, a proposed solution is to include a separate header file (e.g.
pdi_deactivation.h
) that would redefine the PDI API with empty functions, disabling PDI's operation while maintaining valid syntax. Users would only need to add this header file when they wish to temporarily deactivate PDI.