如何使文字包含精确的C函数

发布于 2025-02-08 05:51:33 字数 138 浏览 0 评论 0原文

我想将C标头的一部分或C文件中的一部分包括在我的狮身人面表文档中。 使用LirtalAlclude获取整个文件,但我只想获得一些部分,但基于函数,结构名称等... 我不想使用行或启动选项,因为我想在找不到c惯例时使它失败。

我看不到任何选择或扩展。

I would like to include part of a C header or a C file into my sphinx doc.
using literalinclude gets the whole file but I would like to get only some part but based on functions, struct names etc...
I don't want to use lines or start-with options as I would like to make it fail when the C idiom is not found.

I don't see any option or extension to do that.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文