view src/interface/ErrorGear.h @ 167:2a35e8c6f67c

add error gear
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Thu, 16 Jan 2020 16:00:44 +0900
parents
children ba8687746ff6
line wrap: on
line source

typedef struct ErrorGear <Type, Impl> {
  union Data* error_gear;
  int err_code;
  char* msg;

  __code error(int err_code,...);
  __code panic(char* msg);
} ErrorGear;