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