I would like to know if it is possible to main()include anything inside a function from C.
For example, in the Cell program, I define parameters for cache-api.h, which main()I want to change later in the function .
I realized that what was defined with the help #definecan be undefined from #undefanywhere in the program, but after overriding my required parameters, I have to turn on cache-api.h again. Is it possible?
How can I solve this problem more elegantly? Suppose I want to read from the main repository using cache_rd(...), but the types will be different at runtime of the SPU, how can I use both #define CACHED_TYPE struct xand #define CACHED_TYPE struct yin one program?
Thanks in advance for the answer, I hope that I understand the expression.
source
share