Quake 2 Oop conversion project - Platform Specific Standard


Platform Specific Standard ( back to table of contents ) :

All platform specific code, should follow these guidlines :

  1. Be placed in a specific file just containg the code for that platform. Where the platform identifier prefixes the file name. I.E. : win32_edict.h
  2. Should be encapsulated with one of the platform specific DEFINE pragmas.

  3. I.E. :
    // win32_my_header.h
    // *** Snip ***
    #ifdef WIN32
    //My Win32 Code
    #endif
 
Platform Specific define pragmas :
Win32 ( Windows 95 / Nt ) :
  • WIN32
  • _WIN32
  • WIN_32
Linux :
  • UNIX_LINUX
  • LINUX