Japanese

C Language / "#if" massacre function

  In the C language, when often performing comment out, the following description is carried out.

#if 0
    hogehoge();
#endif
  I think that it is hard to read.
  It is because such expression is not in Java(I am heavy Java user).
  Therefore, "#if" has to kill.

  ["#if"delete] dialog is used in order to perform this refactoring.
  The next is chosen in order to open this dialog.
124x380(3732bytes)
(*)EE2ECDT is required for this function.

How to use ["#if"delete]

  A combo box is in an ["#if"delete] dialog. Please choose a definition to delete.

#if DEFINE
    hogehoge();
#endif
  Next, please choose "#if delete" and "#ifndef delete."

"#if delete" sample

  "It is as follows if "#if delete" is chosen.

#ifdef AAA
    hoge();
#endif
---------------------
(none)
  "It is as follows if "#if delete" is chosen.

#ifndef AAA
    hoge();
#endif
--------------------
    hoge();
  "It is as follows if "#if delete" is chosen.

#ifdef AAA
    hoge();
#else
    hero();
#endif
--------------------
    hero();

"#ifndef delete" sample

  "It is as follows if "#ifndef delete" is chosen.

#ifdef AAA
    hoge();
#endif
---------------------
    hoge();
  "It is as follows if "#ifndef delete" is chosen.

#ifndef AAA
    hoge();
#endif
--------------------
(none)
  "It is as follows if "#ifndef delete" is chosen.

#ifdef AAA
    hoge();
#else
    hero();
#endif
--------------------
    hoge();

ando@park.ruru.ne.jp