1 /*---------------------------------------------------------------------------* 2 Project: NintendoWare 3 File: sdk.h 4 5 Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Revision: 13145 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef SDK_H_ 17 #define SDK_H_ 18 19 #include <nw/config.h> 20 21 #if defined(NW_PLATFORM_CTR) || defined(NW_PLATFORM_CTRWIN) 22 #define CtrMain nnMain 23 #endif 24 25 26 #if defined(NW_PLATFORM_CTR) 27 #include <nn.h> 28 #define OS_Init nn::os::Initialize 29 #define OS_Exit (void) 30 #ifndef OS_Printf 31 #define OS_Printf(...) NN_LOG(__VA_ARGS__) 32 #endif 33 #endif 34 35 #if defined(NW_PLATFORM_TWL) 36 #include <twl.h> 37 #define CtrMain TwlMain 38 #define nnMain TwlMain 39 #endif 40 41 /* SDK_H_ */ 42 #endif 43