Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Syntax Error
Syntax Error [message #163194] Sun, 05 February 2006 12:49
Eclipse UserFriend
Originally posted by: sammy.picostation.com

In a system header file this is defined:

typedef unsigned short int TText;
#define _L(a) (TPtrC((const TText *)L ## a))#define _LIT(name,s) static
const TLitC<sizeof(L##s)/2> name={sizeof(L##s)/2-1,L##s}

Then later in a cpp file, this statement gives a syntax error (although it
compiles successfully) - a red line under the comma and the space part:

_LIT(KMyData, "MyData");

Why is that?
Sammy

P.S. Using CDT
Previous Topic:Anoying error launching cygwinpath
Next Topic:C++ Browsing Perspective
Goto Forum:
  


Current Time: Sat May 31 15:41:36 EDT 2025

Powered by FUDForum. Page generated in 0.02905 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top