diff -r 4891d49809bb -r 2b3996fc09a1 core/com.nokia.carbide.cpp.compiler.doc.user/html/pragmas/p_cpp_extensions.htm --- a/core/com.nokia.carbide.cpp.compiler.doc.user/html/pragmas/p_cpp_extensions.htm Mon Jul 19 15:31:48 2010 -0500 +++ b/core/com.nokia.carbide.cpp.compiler.doc.user/html/pragmas/p_cpp_extensions.htm Mon Jul 19 16:13:24 2010 -0500 @@ -1,59 +1,59 @@ - - -
- - - -Controls language extensions to ISO C++.
-#pragma cpp_extensions on | off | reset -
-If you enable this pragma, you can use the following extensions to the ANSI C++ standard that would otherwise be illegal:
---#pragma cpp_extensions on-
- void foo()
- {
- union {
- long hilo;
- struct { short hi, lo; }; // anonymous struct
- };
- hi=0x1234;
- lo=0x5678; // hilo==0x12345678
- }
----#pragma cpp_extensions on
-
- struct Foo { void f(); }
- void Foo::f()
- {
- void (Foo::*ptmf1)() = &Foo::f; // ALWAYS OKvoid (Foo::*ptmf2)() = f; // OK if you enable cpp_extensions.
-
- }
This pragma does not correspond to any setting . To check this setting, use the __option (cpp_extensions). This pragma is on if generating Win32/x86-compatible object code; off if not.
- - - - - - + + + + + + +Controls language extensions to ISO C++.
+#pragma cpp_extensions on | off | reset +
+If you enable this pragma, you can use the following extensions to the ANSI C++ standard that would otherwise be illegal:
+++#pragma cpp_extensions on+
+ void foo()
+ {
+ union {
+ long hilo;
+ struct { short hi, lo; }; // anonymous struct
+ };
+ hi=0x1234;
+ lo=0x5678; // hilo==0x12345678
+ }
++++#pragma cpp_extensions on
+
+ struct Foo { void f(); }
+ void Foo::f()
+ {
+ void (Foo::*ptmf1)() = &Foo::f; // ALWAYS OKvoid (Foo::*ptmf2)() = f; // OK if you enable cpp_extensions.
+
+ }
This pragma does not correspond to any setting . To check this setting, use the __option (cpp_extensions). This pragma is on if generating Win32/x86-compatible object code; off if not.
+ + + + + +