Subversion Repositories freemyipod

Rev

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

Rev 110 Rev 111
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__
-
 
29
#include "global.h"
28
#include "global.h"
30
#include "_ansi.h"
29
#include "libc/include/_ansi.h"
31
#include <stdarg.h>
30
#include <stdarg.h>
32
#endif
-
 
33
 
31
 
34
 
32
 
35
enum panic_severity
33
enum panic_severity
36
{
34
{
37
    PANIC_KILLTHREAD = 0,
35
    PANIC_KILLTHREAD = 0,
38
    PANIC_KILLUSERTHREADS = 1,
36
    PANIC_KILLUSERTHREADS = 1,
39
    PANIC_FATAL = 2
37
    PANIC_FATAL = 2
40
};
38
};
41
 
39
 
42
 
40
 
43
#ifndef __SYSCALLAPI_H__
-
 
44
void panic(enum panic_severity severity, const char* string) ICODE_ATTR;
41
void panic(enum panic_severity severity, const char* string) ICODE_ATTR;
45
void panicf(enum panic_severity severity, const char* string, ...) ICODE_ATTR
42
void panicf(enum panic_severity severity, const char* string, ...) ICODE_ATTR
46
            ATTRIBUTE_PRINTF(2, 3);
43
            ATTRIBUTE_PRINTF(2, 3);
47
#endif
-
 
48
 
44
 
49
 
45
 
50
#endif
46
#endif