w_bwr
Member level 3
- Joined
- Feb 4, 2010
- Messages
- 66
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Karachi, Pakistan
- Activity points
- 1,810
This is a C code for an Embedded application. What does the MaybeExtern implies? It is not given any value.
This Code is written in a Main.c file:
This code is written in globals.h .
This Code is written in a Main.c file:
Code:
#define EpanelMain
#include "globals.h"
#undef EpanelMain
This code is written in globals.h .
Code:
#ifdef EpanelMain
#define MaybeExtern
#else
#define MaybeExtern extern
#endif
MaybeExtern _far float fGenCurrent[MaxGeneric], fGenK[MaxGeneric], fGenOff[MaxGeneric], fGenTmp[MaxGeneric];
MaybeExtern _far char cGenNdx, cGenAddr[MaxGeneric], cGenAttr[MaxGeneric], cGenCol[MaxGeneric], cGenDec[MaxGeneric], cGenType[MaxGeneric];
MaybeExtern _far char cGenLbl[MaxGeneric][CPDLabelLen+1], cGenUnit[MaxGeneric][CPDUnitLen];
MaybeExtern _far unsigned char ucGenericNum;
.
.
// Some More Variables
.
.
#undef MaybeExtern