Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - #pragma w_mac_redef warning suppression: redefinition of macro http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 #pragma W_MAC_REDEF Warning suppression: Redefinition of macro
------------------------------------------------------------------------------
 Syntax
   #pragma W_MAC_REDEF+|-

 Arguments
   + and - control if the option is on or off, respectively.

 Description
   The #pragma W_MAC_REDEF directive controls the generation
   of a compiler warning when a macro name occurs in a #define directive
   which has already been defined previously (e.g. in a header file). The
   compiler will always make use of the most recent definition.

 Example
   #define EXAMPLE_DIRECTIV
   #include example.hdr

   #pragma W_MAC_REDEF+
   
   #define CLR_STD 1 // redefine macro declared in color.hdr
   
   proc Test_870
   clear
   // Print the string in enhanced color, instead of the standard color.
   // It is not recommended to redefine any of the macros declared in the
   // standard language headers.
   dispcolor( 5, 5, "Hello world", __syscolor[ CLR_STD ] )
   endproc

   proc main
   Test_870()
   endproc

See Also: #define -D

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson