Information générale
Titre:
Compile time directives
Greetings - This is my first post here. All help is appreciated. Joe
---------------
I am trying to structure some code that I can stop development and cut a new APP foir my client without my new stuff messing him up. To do so I want to use compile time directives.
In the main module I place this line:
#DEFINE INDEVELOPMENT 1
Within this module there are locations where I reference this like so:
#IF INDEVELOPMENT = 1
...do something new and special
#ENDIF
or even tried this:
#IFDEF INDEVELOPMENT
...do something new and special
#ENDIF
In several other modules (some of which are PRG's the others are SCX's) I do the same thing.
The compiler issues no errors for the coding, however I do remember (when using #IF rather than #IFDEF) getting the "Preprocessor expression is invalid" when editing.
I suspect scope is the issue at hand here but can find absolutely no documentation on scope for compile time variables.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement