Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #8575

Re: ifdef question

From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: ifdef question
Date 2015-10-28 14:45 +0100
Message-ID <d9c1sqFmasiU1@mid.individual.net> (permalink)
References <n0q6gl$has$1@dont-email.me> <n0q82p$mh5$1@dont-email.me>

Show all headers | View raw


Hi Johan,

this will work with Vulcan.NET because it is file based.

With VO it will not work because it is entity based.

#ifdef and collegues in VO will work only in one entity.

Wolfgang



Johan Nel wrote:

> Martin,
> On 2015/10/28 12:05, Martin wrote:
> > And I have not been able to use ifdef in the class definition for
> > SLE_WH
> > 
> > Is this possible?
> 
> Tested the following and it compiles correctly.
> 
> #ifdef DEBUG
> CLASS Xyz INHERIT y
> #else
> CLASS Xyz INHERIT z
> #endif
> END CLASS
> 
> #ifdef DEBUG
> CLASS y
> END CLASS
> #else
> CLASS z
> END CLASS
> #endif
> You will need to #define MM in the .prg or in a .vh file that you
> then obviously need to #include in the .prg
> 
> HTH,



-- 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

ifdef question Martin <Martin@spam.spam> - 2015-10-28 10:05 +0000
  Re: ifdef question "Wolfgang Riedmann" <wriedmann@gmail.com> - 2015-10-28 14:45 +0100

csiph-web