diff options
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/mpsi.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mps/code/mpsi.c b/mps/code/mpsi.c index e5f88fc8541..f27d1b7dec5 100644 --- a/mps/code/mpsi.c +++ b/mps/code/mpsi.c | |||
| @@ -91,6 +91,18 @@ static Bool mpsi_check(void) | |||
| 91 | CHECKL((int)MPS_RANK_EXACT == (int)RankEXACT); | 91 | CHECKL((int)MPS_RANK_EXACT == (int)RankEXACT); |
| 92 | CHECKL((int)MPS_RANK_WEAK == (int)RankWEAK); | 92 | CHECKL((int)MPS_RANK_WEAK == (int)RankWEAK); |
| 93 | 93 | ||
| 94 | /* Check that external and internal messsage types match. */ | ||
| 95 | /* See <code/mps.h#message.types> and */ | ||
| 96 | /* <code/mpmtypes.h#message.types>. */ | ||
| 97 | /* Also see .check.enum.cast. */ | ||
| 98 | CHECKL(CHECKTYPE(mps_message_type_t, MessageType)); | ||
| 99 | CHECKL((int)MessageTypeFINALIZATION | ||
| 100 | == (int)MPS_MESSAGE_TYPE_FINALIZATION); | ||
| 101 | CHECKL((int)MessageTypeGC | ||
| 102 | == (int)MPS_MESSAGE_TYPE_GC); | ||
| 103 | CHECKL((int)MessageTypeGCSTART | ||
| 104 | == (int)MPS_MESSAGE_TYPE_GC_START); | ||
| 105 | |||
| 94 | /* The external idea of a word width and the internal one */ | 106 | /* The external idea of a word width and the internal one */ |
| 95 | /* had better match. See <design/interface-c/#cons>. */ | 107 | /* had better match. See <design/interface-c/#cons>. */ |
| 96 | CHECKL(sizeof(mps_word_t) == sizeof(void *)); | 108 | CHECKL(sizeof(mps_word_t) == sizeof(void *)); |