Subversion Repositories freemyipod

Rev

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

Rev 50 Rev 52
Line 24... Line 24...
24
#ifndef __PANIC_H__
24
#ifndef __PANIC_H__
25
#define __PANIC_H__
25
#define __PANIC_H__
26
 
26
 
27
 
27
 
28
#include "global.h"
28
#include "global.h"
-
 
29
#include "gcc_extensions.h"
-
 
30
#include <stdarg.h>
29
 
31
 
30
 
32
 
31
enum panic_severity
33
enum panic_severity
32
{
34
{
33
    PANIC_KILLTHREAD = 0,
35
    PANIC_KILLTHREAD = 0,
Line 35... Line 37...
35
    PANIC_FATAL = 2
37
    PANIC_FATAL = 2
36
};
38
};
37
 
39
 
38
 
40
 
39
void panic(enum panic_severity severity, const char* string) ICODE_ATTR;
41
void panic(enum panic_severity severity, const char* string) ICODE_ATTR;
40
void panicf(enum panic_severity severity, const char* string, ...) ICODE_ATTR;
42
void panicf(enum panic_severity severity, const char* string, ...) ICODE_ATTR
-
 
43
            ATTRIBUTE_PRINTF(2, 3);
41
 
44
 
42
 
45
 
43
#endif
46
#endif