In my case, I have two layers say core layer and application layer. Application layer depends of core layer.
I want that only core layer should use CRT functions.
In application layer, if any CRT function is used, it should not compile.
Is there any way to achieve this? For example, direct call to free/malloc should not be made in application layer.
One way which I thought to #define all CRT functions to some error so that Application layer cannot use direct CRT calls (Application layer is including the header files of core layer).