Matlab Coder 强制 boolean_T 为原生 C99 bool 类型
如何强制 matlab 嵌入式编码器将“boolean_T”设置为“bool”C99 类型?
如果没有它,我需要 int->boolean_t 的显式转换 I/O 信号映射(int->bool 不需要)。
How can I force matlab embedded coder to set "boolean_T" as "bool" C99 type?
Without that, I need explicit cast conversion I/O signals mapping for int->boolean_t (not needed for int->bool).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将硬件切换到
Generic->MATLAB Host Computer
之外的其他硬件,您应该获得 C99 的bool
:使用 MATLAB Host Computer,
boolean_T
保留,以防引入某些 MATLAB 库以确保二进制兼容性。Switch up the hardware to something other than
Generic->MATLAB Host Computer
and you should getbool
for C99:With MATLAB Host Computer,
boolean_T
is preserved in case some MATLAB libraries are pulled in to ensure binary compatibility.