Subversion Repositories freemyipod

Rev

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

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