source file RFK.h

Go to the documentation of this file.

#ifndef RFK_H
#define RFK_H

//******************************************************************************
// Copyright (c) 2005 Redway. All rights reserved.
//
// Redway3d is a registered trademark. Any reproduction and / or utilization
// of any material from this document without Redway?s express authorization
// are prohibited.
//******************************************************************************

#pragma warning( disable : 4482 )


  //******************************************************************************
  //*** System types *************************************************************
  //******************************************************************************

  #if defined( _WIN32 )

  #if defined( _RFK_DEBUG )

  #include <assert.h>

  #endif

  #elif defined( _LIN32 )

  #include <stdio.h>
  #include <linux/types.h>

  #elif defined( _MAC32 )

  #include <stdio.h>
  #include <sys/types.h>
  #include <sys/sysctl.h>

  #endif


  //******************************************************************************
  //*** RFK export symbols *******************************************************
  //******************************************************************************

  #if defined( _WIN32 )

    #if defined( _RFK_ )
      #define RFKExp            __declspec(dllexport)
    #else
      #define RFKExp            __declspec(dllimport)
    #endif

  #else
    
    #define RFKExp

  #endif
  

#define RC_TEST( rc )\
  {\
    RED_RC red_rc_test = (rc);\
    if( red_rc_test != RED_OK )\
    {\
      RFK::TutorialApplication::DisplayError( red_rc_test, __FILE__, __LINE__ );\
      return red_rc_test;\
    }\
  }

#endif