Author Topic: Preprocessor macros for C missing?!?  (Read 5340 times)

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Preprocessor macros for C missing?!?
« on: November 27, 2012, 11:46:24 am »
Wouldn't it make sense to provide preprocessor macro setting also for C language?

There are surely a lot of compiler implementation or framework specific definitions, that should be ignored when C code is imported/synchronized.

Opinions anyone?

Best reagards,
Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Preprocessor macros for C missing?!?
« Reply #1 on: November 27, 2012, 12:30:15 pm »
I'm reasonably sure that they are shared. So the question is: Is there a use case where they need to be different?

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Preprocessor macros for C missing?!?
« Reply #2 on: November 27, 2012, 12:59:44 pm »
If they're shared from the definitions for C++ everything will be fine.

Didn't check that so far, just stumbled over the drop down, that only offers C++. It should display better 'C/C++' then.

Best regards,
Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Preprocessor macros for C missing?!?
« Reply #3 on: December 04, 2012, 08:26:55 pm »
Hi,

macros are working fine for C. I tested it.

Kind regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Preprocessor macros for C missing?!?
« Reply #4 on: December 04, 2012, 08:50:40 pm »
Also confirmed this meanwhile.

Thanks Helmut