168
|
1 #include "../context.h"
|
|
2 #interface "ErrorGear.h"
|
|
3
|
|
4 // ----
|
|
5 // typedef struct KernelError <Type, Isa> impl ErrorGear {
|
|
6 // } KernelError;
|
|
7 // ----
|
|
8
|
|
9 ErrorGear* createKernelError(struct Context* cbc_context) {
|
|
10 struct ErrorGear* error_gear = new ErrorGear();
|
|
11 struct KernelError* kernel_error = new KernelError();
|
|
12 error_gear->error_gear = (union Data*)kernel_error;
|
|
13 error_gear->err_code = 0;
|
|
14 error_gear->msg = NULL;
|
|
15 error_gear->error = C_errorKernelError;
|
|
16 error_gear->panic = C_panicKernelError;
|
|
17 return error_gear;
|
|
18 }
|
|
19 __code errorKernelError(int err_code,...) {
|
|
20
|
|
21 }
|
|
22
|
|
23 __code panicKernelError(char* msg) {
|
|
24
|
|
25 }
|
|
26
|