sorincezar
sorincezar
One way i got around was to define the constant that guards the header (so that the content of that header does not get included) and then define the header...
So let's say i want to mock sdk.h which has something along these lines ``` #ifdef SDK__H_ #define SDK__H_ static inline void function() { } #endif ``` i'll write my...
This way, the original sdk.h file does not need to be touched. However, whatever is defined in there and used in the code, would need to be copy pasted in...