1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     dbg_Break.h
4   Copyright (C)2009 Nintendo Co., Ltd.  All rights reserved.
5   These coded instructions, statements, and computer programs contain
6   proprietary information of Nintendo of America Inc. and/or Nintendo
7   Company Ltd., and are protected by Federal copyright law. They may
8   not be disclosed to third parties or copied or duplicated in any form,
9   in whole or in part, without the prior written consent of Nintendo.
10   $Rev: 23646 $
11  *---------------------------------------------------------------------------
12 
13 
14 */
15 
16 /* Please see man pages for details
17 
18 
19 
20 */
21 
22 #ifndef NN_DBG_DBG_BREAK_H_
23 #define NN_DBG_DBG_BREAK_H_
24 
25 #include <nn/Result.h>
26 #include <nn/types.h>
27 #include <nn/dbg/dbg_Enum.h>
28 
29 //-------------------------------------------------------------------
30 // for C / C++
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif  // ifdef __cplusplus
35 
36 /* Please see man pages for details
37 
38 */
39 nnResult nndbgBreak(int reason);
40 
41 /* Please see man pages for details
42 
43 */
44 void nndbgPanic(void);
45 
46 #ifdef __cplusplus
47 }
48 #endif  // ifdef __cplusplus
49 
50 
51 
52 //-------------------------------------------------------------------
53 // for C++
54 
55 #ifdef __cplusplus
56 
57 namespace nn { namespace dbg {
58 
59     /* Please see man pages for details
60 
61 
62 
63 
64 
65 
66 
67 
68 
69 
70 
71 
72 */
73     nn::Result Break(nn::dbg::BreakReason reason);
74 
75     /* Please see man pages for details
76 
77 
78 
79 
80 
81 */
Break()82     inline nn::Result Break()
83     {
84         return Break(BREAK_REASON_PANIC);
85     }
86 
87     /* Please see man pages for details
88 
89 
90 
91     */
92     void Panic();
93 
94 }}
95 
96 #endif  // ifdef __cplusplus
97 
98 
99 
100 #endif /* NN_DBG_DBG_BREAK_H_ */
101