Reputation: 11863
Is there a command line tool to automatically generate a .h from its .cpp or .c?
It seems like a very obvious thing to do, I don't know why it never dawned on me before now...
Of course, in the .h there should be more things than just function prototypes, so the tool could be non-trivial. Or could be trivial, requiring you to include two .h: the generated one and the custom one.
Anyway, I'd rather avoid reinventing the wheel, that's why I'm asking if it already exists.
Upvotes: 5
Views: 1157