# HG changeset patch # User anatofuz # Date 1579158044 -32400 # Node ID 2a35e8c6f67ce4b391f06a47a1be1e626c337d98 # Parent a70c436936e43153e983e673da35b92e392caf38 add error gear diff -r a70c436936e4 -r 2a35e8c6f67c src/impl/kernel_error.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/impl/kernel_error.h Thu Jan 16 16:00:44 2020 +0900 @@ -0,0 +1,2 @@ +typedef struct KernelError impl ErrorGear { +} KernelError; diff -r a70c436936e4 -r 2a35e8c6f67c src/interface/ErrorGear.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/interface/ErrorGear.h Thu Jan 16 16:00:44 2020 +0900 @@ -0,0 +1,8 @@ +typedef struct ErrorGear { + union Data* error_gear; + int err_code; + char* msg; + + __code error(int err_code,...); + __code panic(char* msg); +} ErrorGear;