ThrowTheSwitch / CMock

CMock - Mock/stub generator for C
http://throwtheswitch.org
MIT License
671 stars 273 forks source link

Added a user-friendly error message when processing bad :treat_as #451

Closed informatimago closed 1 year ago

informatimago commented 1 year ago

When the indentation after :treat_as mappings is wrong, we may get a symbol as ctype. The error signaled by gtype.gsub is not userfriendly, so instead, we test for symbols and issue a user friend error message in that case.