X-Git-Url: http://git.squeep.com/?p=dcpu16;a=blobdiff_plain;f=dcpu16.h;fp=dcpu16.h;h=b5710789028f6356484382246a27588dbd2a11b3;hp=1f46d454c618537b918cdddc436029d5442cad23;hb=052f0d9ed1165dabd061c8eac39c3be71184a5cf;hpb=1470698024f5511a3b94b7bb50b1097cc6659b32 diff --git a/dcpu16.h b/dcpu16.h index 1f46d45..b571078 100644 --- a/dcpu16.h +++ b/dcpu16.h @@ -32,17 +32,16 @@ typedef void (dcpu16_msg_cb_t)(unsigned int, char *, ...); /* we may emit any of these types of messages */ enum dcpu16_msg_type { - MSG_ERROR = 0, - MSG_INFO, - MSG_DEBUG + DCPU16_MSG_ERROR = 0, + DCPU16_MSG_INFO, + DCPU16_MSG_DEBUG }; /* update the default message handler */ dcpu16_msg_cb_t *dcpu16_msg_set_default(dcpu16_msg_cb_t *); -/* -extern dcpu16_msg_cb_t *dcpu16_msg; -*/ +/* hardware devices may want to call this directly, without a core context */ +extern dcpu16_msg_cb_t *dcpu16_msg_; /* a self-contained dcpu16 core */ struct dcpu16 {