I created a workspace for an IAR project that uses C, but in Slickedit the __cplusplus is always defined so I cannot find member variables to structures etc as it is always requiring me to do namespace::structure::member, which of course C doesn't understand. It makes using Slickedit a pain as it can't auto complete anything for me. A lot of the header files have:
#ifdef __cplusplus
# include <cstdint>
#endif
or
#if defined( __cplusplus ) && defined( USE_NAMESPACE )
namespace space {
#endif
In both instances above the #include/namespace are shown in the enabled colour, and in the latter example the USE_NAMESPACE isn't defined anywhere in the source yet Slickedit seems think that it is.
Any ideas what is wrong with my setup? How do I force Slickedit to treat the whole project as only C, not C++? Is it to do with how I created the project/workspace? I used the Other C/C++. I can't find anything related to just a C workspace.
Cheers,
Barak.