I think it would be technically doable, but would be relatively complex, and might be able to be done better via things like editor snippets etc. but yeah a macro could call arbitrary code at compile time, including code that replaces it in its own source file.






















