Including a #define in all .c source files at compile time

前端 未结 3 1657
一整个雨季
一整个雨季 2020-12-19 02:33

I need to include a #define at the top of around 300 .c files. I would prefer not to change the code as it is open source code but if I have to I will just wri

3条回答
  •  醉梦人生
    2020-12-19 03:19

    If you strive for redirecting malloc() calls to a custom function I would rather recommend to provide your custom code via pre-loading of your implementation at runtime. See this question for details.

提交回复
热议问题