C宏可以在C文件的末尾添加一些代码吗?
所以我的代码如下:
// puma.cpp
#include "FILE_WITH_MACROS.hpp"
ANIMAL_MACROS_NAME_HERE class puma : public animal {
public:
puma(int age) : animal(age) {}
virtual std::string get_name() {
return "puma";
}
};
//end of puma.cpp and here we want to add some more code via ANIMAL_MACROS_NAME_HERE macros.
我在C文件中间使用的宏可以在我的文件末尾添加一些代码吗?