annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
167
2a35e8c6f67c add error gear
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 typedef struct ErrorGear <Type, Impl> {
2a35e8c6f67c add error gear
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 union Data* error_gear;
2a35e8c6f67c add error gear
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 int err_code;
2a35e8c6f67c add error gear
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 char* msg;
2a35e8c6f67c add error gear
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
2a35e8c6f67c add error gear
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 __code error(int err_code,...);
2a35e8c6f67c add error gear
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 __code panic(char* msg);
2a35e8c6f67c add error gear
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 } ErrorGear;