view src/impl/kernel_error.cbc @ 280:21a5761e3e7a

mv_extraction_dg_compile_sources Context2Util
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Tue, 28 Jan 2020 15:20:34 +0900
parents 04a5e0aa7f01
children ba8687746ff6
line wrap: on
line source

#include "../context.h"
#interface "ErrorGear.h"

// ----
// typedef struct KernelError <Type, Isa> impl ErrorGear {
// } KernelError;
// ----

ErrorGear* createKernelError(struct Context* cbc_context) {
    struct ErrorGear* error_gear  = new ErrorGear();
    struct KernelError* kernel_error = new KernelError();
    error_gear->error_gear = (union Data*)kernel_error;
    error_gear->err_code  = 0;
    error_gear->msg = NULL;
    error_gear->error = C_errorKernelError;
    error_gear->panic = C_panicKernelError;
    return error_gear;
}
__code errorKernelError(int err_code,...) {

}

__code panicKernelError(char* msg) {

}