Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to define your own Boolean types?
#2
The MISRA-C working group recommends the use of the stdbool.h version of bool where available.
However Appendix D.6 on Boolean constants says:
" Tools may also provide additional ways of identifying essential Boolean types."
It is therefore possible to define a boolean type as you have done. The MISRA C:2012 rules on essentially boolean types will then apply.
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)