SystemC  Recoding Infrastructure for SystemC v0.6.3 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
sc_stop_here.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  The following code is derived, directly or indirectly, from the SystemC
4  source code Copyright (c) 1996-2014 by all Contributors.
5  All Rights reserved.
6 
7  The contents of this file are subject to the restrictions and limitations
8  set forth in the SystemC Open Source License (the "License");
9  You may not use this file except in compliance with such restrictions and
10  limitations. You may obtain instructions on how to receive a copy of the
11  License at http://www.accellera.org/. Software distributed by Contributors
12  under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
13  ANY KIND, either express or implied. See the License for the specific
14  language governing rights and limitations under the License.
15 
16  *****************************************************************************/
17 
18 /*****************************************************************************
19 
20  sc_stop_here.h -- Function provided for debugging purposes.
21  This file is always compiled in debug mode, such that
22  setting a breakpoint at this function can help locate
23  the cause of a SystemC error or warning.
24 
25  Original Author: Martin Janssen, Synopsys, Inc., 2001-11-14
26 
27  CHANGE LOG AT END OF FILE
28  *****************************************************************************/
29 
30 // $Log: sc_stop_here.h,v $
31 // Revision 1.3 2011/08/26 20:46:19 acg
32 // Andy Goodrich: moved the modification log to the end of the file to
33 // eliminate source line number skew when check-ins are done.
34 //
35 #ifndef SC_STOP_HERE_H
36 #define SC_STOP_HERE_H
37 
38 
39 #include "sysc/utils/sc_report.h"
40 
41 
42 namespace sc_core {
43 
44 // ----------------------------------------------------------------------------
45 // FUNCTION : sc_interrupt_here
46 //
47 // Debugging aid for interrupt warning, error, and fatal reports.
48 // ----------------------------------------------------------------------------
49 
50 extern
51 void
52 sc_interrupt_here( const char* id, sc_severity severity );
53 
54 
55 // ----------------------------------------------------------------------------
56 // FUNCTION : sc_stop_here
57 //
58 // Debugging aid for warning, error, and fatal reports.
59 // ----------------------------------------------------------------------------
60 
61 extern
62 void
63 sc_stop_here( const char* id, sc_severity severity );
64 
65 } // namespace sc_core
66 
67 #endif
68 
69 // Revision 1.2 2011/02/18 20:38:44 acg
70 // Andy Goodrich: Updated Copyright notice.
71 //
72 // Revision 1.1.1.1 2006/12/15 20:20:06 acg
73 // SystemC 2.3
74 //
75 // Revision 1.3 2006/01/13 18:53:11 acg
76 // Andy Goodrich: Added $Log command so that CVS comments are reproduced in
77 // the source.
78 //
79 
80 // Taf!
sc_severity
Definition: sc_report.h:46
void sc_stop_here(const char *id, sc_severity severity)
void sc_interrupt_here(const char *id, sc_severity severity)