Added a new special reg_t, SIGNAL_REG, for signaling when an error occurs (usually), or to signal success in some special occasions

svn-id: r44505
This commit is contained in:
Filippos Karapetis 2009-09-30 23:00:03 +00:00
parent 96a40e7712
commit 30084d72a5
8 changed files with 14 additions and 12 deletions

View file

@ -60,7 +60,7 @@ reg_t kGameIsRestarting(EngineState *s, int argc, reg_t *argv) {
}
reg_t kHaveMouse(EngineState *s, int argc, reg_t *argv) {
return make_reg(0, SIGNAL_OFFSET);
return SIGNAL_REG;
}
enum kMemoryInfoFunc {