/*---------------------------------------------------------------------------* Project: NintendoWare File: types.h Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo and/or its licensed developers and are protected by national and international copyright laws. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. The content herein is highly confidential and should be handled accordingly. $Revision: 31311 $ *---------------------------------------------------------------------------*/ #ifndef NW_TYPES_H_ #define NW_TYPES_H_ #define NW_CALL_DRAW_ELEMENTS_MANUALLY #define NW_LINK_PROGRAM_MANUALLY #if !defined(NN_SWITCH_ENABLE_MEMBER_NAME_SHORTCUT) #define NN_SWITCH_ENABLE_MEMBER_NAME_SHORTCUT #endif #include #include #include #if !defined(NW_INLINE) #define NW_INLINE inline #endif #if !defined(NW_FORCE_INLINE) #if defined(NW_DEBUG) #define NW_FORCE_INLINE inline #else #define NW_FORCE_INLINE __forceinline #endif #endif #if !defined( NW_DEV_DISABLED ) // NW_DEV_DISABLED が定義されていたら dev ライブラリを無効化します。 #define NW_DEV_ENABLED #endif namespace nw { #ifdef NW_COMPILER_WITH_W64 typedef __w64 unsigned long IntPtr; typedef __w64 signed long PtrDiff; #else typedef unsigned long IntPtr; typedef signed long PtrDiff; #endif } #ifndef NW_ANY_TO_PTR_VALUE #define NW_ANY_TO_PTR_VALUE(ptr) reinterpret_cast(reinterpret_cast(ptr)) #endif #define NW_UNUSED_VARIABLE(Variable) (void)(&Variable); #ifdef NW_PLATFORM_CTR #define NW_ALIGN_VARIABLE(Variable, n) Variable __attribute__ ((aligned(n))) #else #define NW_ALIGN_VARIABLE(Variable, n) __declspec(align(n)) Variable #endif #ifdef NW_PLATFORM_CTR #include #if !defined(NW_USE_COMMAND_CACHE) #define NW_USE_COMMAND_CACHE #endif #endif #define NW_SDK_VERSION (((NN_VERSION_MAJOR) << 24) | ((NN_VERSION_MINOR) << 16) | ((NN_VERSION_MICRO) << 8)) /* NW_TYPES_H_ */ #endif