Paul
Paul

Reputation: 26640

Conditional define in a compiler directive?

Can a conditional define like $(Config) be used in compiler directives?

For example:

{$R Payload.res Resources\THE_DEFINE\ResTHE_DEFINE.rc}

Upvotes: 1

Views: 434

Answers (1)

David Heffernan
David Heffernan

Reputation: 612794

Can a conditional define like $(Config) be used in compiler directives?

The simple answer is no it cannot.

If I were trying to compile and link a resource conditionally, I would do so using an external build script invoked from a pre-build action.

Upvotes: 3

Related Questions