2

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).

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.