Re: Conditional compile


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Brian Levantine on February 06, 2006 at 08:07:49:

In Reply to: Conditional compile posted by Stephen Auerbach on February 06, 2006 at 07:27:51:

How about using two new source filenames that include the original after setting a contol constant.

Example:

Start with 2 (or more as req.) files that do nothing more that set the constants and the original soure. Obviousely, you could initialize more constants/data as req. by your application.

New file: Client1.ibs - Outputs Client1.Obj
Set Client1 = TRUE
#include ClientCode.Ibs

New file: Client2.Ibs - Outputs Client2.Obj
Set Client2 = TRUE
#include ClientCode.Ibs

In your old source you now use the symbolic constants to control which client you're building

Old file: ClineCode.Ibs
.IF Client1
. Build Client 1 code
.EndIf

.ID Client 2
. Build Client 2 code
.EndId



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):






[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]