Hi,
In B4X it is possible to write compiler directives. But the preprocessor can go further.
Is it possible to have more advanced as preprocessor in C or Clipper or Harbour language?
With the preprocessor you can be defined commands that make it easier to maintain programs that hide much of the unnecessary logic.
Definition (with optional clauses):
#define DEFINE FORM <oForm> _
[COLORBACK <nColorBack> ] _
[HEIGHT <nHeight> ] => <oForm> = MShared.CreateForm(<nColorBack>, <nHeight>)
#define ACTIVATE FORM <oForm> => <oForm>.Activate
Use:
Dim oForm As FORM
DEFINE FORM oForm
ACTIVATE FORM oForm
Regards
In B4X it is possible to write compiler directives. But the preprocessor can go further.
Is it possible to have more advanced as preprocessor in C or Clipper or Harbour language?
With the preprocessor you can be defined commands that make it easier to maintain programs that hide much of the unnecessary logic.
Definition (with optional clauses):
#define DEFINE FORM <oForm> _
[COLORBACK <nColorBack> ] _
[HEIGHT <nHeight> ] => <oForm> = MShared.CreateForm(<nColorBack>, <nHeight>)
#define ACTIVATE FORM <oForm> => <oForm>.Activate
Use:
Dim oForm As FORM
DEFINE FORM oForm
ACTIVATE FORM oForm
Regards