Torque3D Documentation / _generateds / types.codewarrior.h

types.codewarrior.h

Engine/source/platform/types.codewarrior.h

More...

Public Defines

define
define
TORQUE_COMPILER_STRING() "CODEWARRIOR"

Public Typedefs

signed long long
S64 

Compiler independent Signed 64-bit integer.

unsigned long long
U64 

Compiler independent Unsigned 64-bit integer.

Detailed Description

Public Defines

TORQUE_COMPILER_CODEWARRIOR() __MWERKS__
TORQUE_COMPILER_STRING() "CODEWARRIOR"

Public Typedefs

typedef signed long long S64 

Compiler independent Signed 64-bit integer.

typedef unsigned long long U64 

Compiler independent Unsigned 64-bit integer.

  1
  2//-----------------------------------------------------------------------------
  3// Copyright (c) 2012 GarageGames, LLC
  4//
  5// Permission is hereby granted, free of charge, to any person obtaining a copy
  6// of this software and associated documentation files (the "Software"), to
  7// deal in the Software without restriction, including without limitation the
  8// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  9// sell copies of the Software, and to permit persons to whom the Software is
 10// furnished to do so, subject to the following conditions:
 11//
 12// The above copyright notice and this permission notice shall be included in
 13// all copies or substantial portions of the Software.
 14//
 15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 21// IN THE SOFTWARE.
 22//-----------------------------------------------------------------------------
 23
 24#ifndef INCLUDED_TYPES_CODEWARRIOR_H
 25#define INCLUDED_TYPES_CODEWARRIOR_H
 26
 27#pragma once
 28
 29// If using the IDE detect if DEBUG build was requested
 30#if __ide_target("Torque-W32-Debug")
 31   #define TORQUE_DEBUG
 32#elif __ide_target("Torque-MacCarb-Debug")
 33   #define TORQUE_DEBUG
 34#elif __ide_target("Torque-MacX-Debug")
 35   #define TORQUE_DEBUG
 36#endif
 37
 38
 39//--------------------------------------
 40// Types
 41typedef signed long long   S64;     ///< Compiler independent Signed 64-bit integer
 42typedef unsigned long long U64;     ///< Compiler independent Unsigned 64-bit integer
 43
 44
 45
 46//--------------------------------------
 47// Compiler Version
 48#define TORQUE_COMPILER_CODEWARRIOR __MWERKS__
 49
 50#define TORQUE_COMPILER_STRING "CODEWARRIOR"
 51
 52
 53//--------------------------------------
 54// Identify the Operating System
 55#if defined(_WIN64)
 56#  define TORQUE_OS_STRING "Win64"
 57#  define TORQUE_OS_WIN
 58#  define TORQUE_OS_WIN64
 59#  include "platform/types.win.h"
 60#if defined(_WIN32)
 61#  define TORQUE_OS_STRING "Win32"
 62#  define TORQUE_OS_WIN
 63#  define TORQUE_OS_WIN32
 64#  include "platform/types.win.h"
 65
 66#elif defined(macintosh) || defined(__APPLE__)
 67#  define TORQUE_OS_STRING "Mac"
 68#  define TORQUE_OS_MAC
 69#  if defined(__MACH__)
 70#     define TORQUE_OS_MAC
 71#  endif
 72#  include "platform/types.ppc.h"
 73#else 
 74#  error "CW: Unsupported Operating System"
 75#endif
 76
 77
 78//--------------------------------------
 79// Identify the CPU
 80#if defined(_M_IX86)
 81#  define TORQUE_CPU_STRING "x86"
 82#  define TORQUE_CPU_X86
 83#  define TORQUE_LITTLE_ENDIAN
 84#  define TORQUE_SUPPORTS_NASM
 85#  define TORQUE_SUPPORTS_VC_INLINE_X86_ASM
 86
 87   // Compiling with the CW IDE we cannot use NASM :(
 88#  if __ide_target("Torque-W32-Debug")
 89#     undef TORQUE_SUPPORTS_NASM
 90#  elif __ide_target("Torque-W32-Release")
 91#     undef TORQUE_SUPPORTS_NASM
 92#  endif
 93#else
 94#  error "CW: Unsupported Target CPU"
 95#endif
 96
 97
 98#endif // INCLUDED_TYPES_CODEWARRIOR_H
 99
100