Subversion Repositories HelenOS-historic

Rev

Rev 615 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 615 Rev 1702
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
-
 
29
 /** @addtogroup generic   
-
 
30
 * @{
-
 
31
 */
-
 
32
/** @file
-
 
33
 */
-
 
34
 
29
#ifndef __PANIC_H__
35
#ifndef __PANIC_H__
30
#define __PANIC_H__
36
#define __PANIC_H__
31
 
37
 
32
#ifdef CONFIG_DEBUG
38
#ifdef CONFIG_DEBUG
33
#   define panic(format, ...) panic_printf("Kernel panic in %s() at %s on line %d: " format, __FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__);
39
#   define panic(format, ...) panic_printf("Kernel panic in %s() at %s on line %d: " format, __FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__);
Line 36... Line 42...
36
#endif
42
#endif
37
 
43
 
38
extern void panic_printf(char *fmt, ...) __attribute__((noreturn)) ;
44
extern void panic_printf(char *fmt, ...) __attribute__((noreturn)) ;
39
 
45
 
40
#endif
46
#endif
-
 
47
 
-
 
48
 /** @}
-
 
49
 */
-
 
50