Automatically Generate C Code From Header

后端 未结 3 1087
庸人自扰
庸人自扰 2021-02-15 19:01

I want to generate empty implementations of procedures defined in a header file. Ideally they should return NULL for pointers, 0 for integers, etc, and, in an ideal world, also

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-15 19:16

    UML modeling tools are capable of generating default implementation in the language of choice. Generally there is also a support for importing source code (including C headers). You can try to import your headers and generate source code from them. I personally have experience with Enterprise Architect and it supports both of these operations.

提交回复
热议问题