pic*_*c11 4 c include c-preprocessor
很快的问题.我想使用include指令将文本数据复制并粘贴到单独文件的源代码中.
这合法吗?
struct Record; // collection of data fields
Record rec = { #include "some_big_record.txt" };
int numbers[] = { #include "some_long_sequence_of_numbers.txt" };
Run Code Online (Sandbox Code Playgroud)
它适用于我的盒子(GCC),但它是否可移植?