Book a Demo

Author Topic: Reverseengineering: hide classes throughcode  (Read 4637 times)

Aba172

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Reverseengineering: hide classes throughcode
« on: November 06, 2008, 09:39:12 pm »
Hello everyone,

i have a question concerning the reverseengineering:

Is it possible to set a command in the sourcecode of a class so that EA is not showing this class in the classmodell?

Thank you very much.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Reverseengineering: hide classes throughcode
« Reply #1 on: November 07, 2008, 09:27:49 am »
If your language supports pre-processor commands, you can use this to hide something for EA, as EA always evaluates the first branch as true (except for something like #if false).

So a C++ example to do what you want would be...

Code: [Select]
#ifdef THISISNEVERDEFINED
#else
class Foo
{
};
#endif