Book a Demo

Author Topic: Compiler-specific keywords in C source code  (Read 3345 times)

Marco H.

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Compiler-specific keywords in C source code
« on: February 08, 2013, 01:15:14 am »
I am trying to import C code containing compiler-specific keywords like __near, __far, __attribute__(), __at(), etc. and getting errors whenever one is encountered.
Is there a way to add those keywords to the C language or just ignore them?

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Compiler-specific keywords in C source code
« Reply #1 on: February 08, 2013, 04:13:07 am »
You can specify language macros to ignore them when EA parses the code (see http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/software_engineering/languagemacros.html). Don't care about the 'C++' these are valid for C as well.

HTH
Günther