Matlab Coder force boolean_T to be native C99 bool type

Antworten (1)

Ryan Livingston
Ryan Livingston am 3 Apr. 2022
Bearbeitet: Ryan Livingston am 3 Apr. 2022
This is question was asked on StackOverflow:
Here's the response I gave:
Switch up the hardware to something other than Generic->MATLAB Host Computer and you should get bool for C99:
cfg = coder.config('lib');
% Hit TAB to see other possible hardware or do
% open cfg
% and use the GUI to pick one
cfg.HardwareImplementation.ProdHWDeviceType = 'Intel->x86-64 (Linux 64)';
codegen f -args true -config cfg -report -std:c99
With MATLAB Host Computer, boolean_T is preserved in case some MATLAB libraries are pulled in to ensure binary compatibility.ave there

Kategorien

Mehr zu MATLAB Coder finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020a

Gefragt:

am 2 Apr. 2022

Bearbeitet:

am 3 Apr. 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by