What is the difference between "far" and "__far"?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

What is the difference between "far" and "__far"?

626 次查看
AndersJ
Contributor IV

Is "far" and "__far" equivalent?

 

Anders J

标签 (1)
0 项奖励
回复
1 回复

350 次查看
CompilerGuru
NXP Employee
NXP Employee

Two underscores :smileyhappy:

 

Of course they are two different identifiers, so one can be remapped with a define differently than the other.

Also when the command line option -ansi is present, the compiler only recognizes __far. That's the reason I would recommend to use __far exclusively. But when -ansi is not present and no #define maps far or __far, they behave absolutely identical.

 

 

 

0 项奖励
回复