mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
Removed/replaced BREAKPOINT
svn-id: r41025
This commit is contained in:
parent
56c0a41b71
commit
c7c9f05cac
@ -248,7 +248,6 @@ void graph_restore_box(EngineState *s, reg_t handle) {
|
||||
|
||||
if (!parent) {
|
||||
error("Attempted widget mass destruction by a snapshot");
|
||||
BREAKPOINT();
|
||||
}
|
||||
|
||||
reparentize_primary_widget_lists(s, (GfxPort *) parent);
|
||||
@ -1842,7 +1841,6 @@ int _k_view_list_dispose_loop(EngineState *s, List *list, GfxDynView *widget, in
|
||||
SCIkdebug(SCIkGRAPHICS, "Adding view at %04x:%04x to background\n", PRINT_REG(obj));
|
||||
if (!(gfxw_remove_id(widget->_parent, widget->_ID, widget->_subID) == widget)) {
|
||||
error("Attempt to remove view with ID %x:%x from list failed!\n", widget->_ID, widget->_subID);
|
||||
BREAKPOINT();
|
||||
}
|
||||
|
||||
s->drop_views->add(GFXWC(s->drop_views), gfxw_picviewize_dynview(widget));
|
||||
@ -1961,7 +1959,6 @@ static void _k_make_view_list(EngineState *s, GfxList **widget_list, List *list,
|
||||
|
||||
if (!*widget_list) {
|
||||
error("make_view_list with widget_list == ()\n");
|
||||
BREAKPOINT();
|
||||
};
|
||||
|
||||
assert_primary_widget_lists(s);
|
||||
@ -1970,7 +1967,6 @@ static void _k_make_view_list(EngineState *s, GfxList **widget_list, List *list,
|
||||
|
||||
if (!list) { // list sanity check
|
||||
error("Attempt to make list from non-list!\n");
|
||||
BREAKPOINT();
|
||||
}
|
||||
|
||||
node = lookup_node(s, list->first);
|
||||
|
@ -535,7 +535,7 @@ void SegManager::heapRelocate(reg_t block) {
|
||||
for (k = 0; k < scr->_objects.size(); k++)
|
||||
sciprintf("- obj#%d at %04x w/ %d vars\n", k, scr->_objects[k].pos.offset, scr->_objects[k]._variables.size());
|
||||
sciprintf("Triggering breakpoint...\n");
|
||||
BREAKPOINT();
|
||||
error("Breakpoint in %s, line %d\n", __FILE__, __LINE__);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -264,7 +264,7 @@ void gfxw_remove_widget_from_container(GfxContainer *container, GfxWidget *widge
|
||||
|
||||
if (!container) {
|
||||
GFXERROR("Attempt to remove widget from NULL container!\n");
|
||||
BREAKPOINT();
|
||||
error("gfxw_remove_widget_from_container() failed. Breakpoint in %s, line %d\n", __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
seekerp = &(container->_contents);
|
||||
@ -286,7 +286,7 @@ void gfxw_remove_widget_from_container(GfxContainer *container, GfxWidget *widge
|
||||
widget->print(1);
|
||||
sciprintf("Container:");
|
||||
widget->print(1);
|
||||
BREAKPOINT();
|
||||
error("gfxw_remove_widget_from_container() failed. Breakpoint in %s, line %d\n", __FILE__, __LINE__);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -826,7 +826,7 @@ GfxText::~GfxText() {
|
||||
GfxState *state = _visual ? _visual->_gfxState : NULL;
|
||||
if (!state) {
|
||||
GFXERROR("Attempt to free text without supplying mode to free it from!\n");
|
||||
BREAKPOINT();
|
||||
error("GfxText destructor failed. Breakpoint in %s, line %d\n", __FILE__, __LINE__);
|
||||
} else {
|
||||
gfxop_free_text(state, _textHandle);
|
||||
_textHandle = NULL;
|
||||
@ -1330,9 +1330,7 @@ int _gfxwop_ordered_add(GfxContainer *container, GfxWidget *widget, int compare_
|
||||
widget->print(3);
|
||||
sciprintf("\nList:");
|
||||
container->print(3);
|
||||
BREAKPOINT();
|
||||
|
||||
return 1;
|
||||
error("Breakpoint in %s, line %d\n", __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
if (_gfxw_container_id_equals(container, widget))
|
||||
|
@ -485,7 +485,7 @@ static void _gfxr_auxplot_brush(gfxr_pic_t *pic, byte *buffer, int yoffset, int
|
||||
int full_offset = (yoffset * pic->mode->yfact + offset) * pic->mode->xfact;
|
||||
|
||||
if (yoffset + offset >= 64000) {
|
||||
BREAKPOINT();
|
||||
error("_gfxr_auxplot_brush() failed. Breakpoint in %s, line %d\n", __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
switch (brush_mode) {
|
||||
|
@ -540,7 +540,9 @@ void SfxState::updateMultiSong() {
|
||||
oldseeker->next_stopping = oldseeker->next_playing;
|
||||
oldseeker->next_playing = ¬_playing_anymore;
|
||||
|
||||
if (oldseeker == oldseeker->next_playing) { BREAKPOINT(); }
|
||||
if (oldseeker == oldseeker->next_playing) {
|
||||
error("updateMultiSong() failed. Breakpoint in %s, line %d\n", __FILE__, __LINE__);
|
||||
}
|
||||
}
|
||||
|
||||
/* Second, re-generate the new song queue. */
|
||||
@ -549,7 +551,9 @@ void SfxState::updateMultiSong() {
|
||||
newseeker->next_playing
|
||||
= song_lib_find_next_active(_songlib, newseeker);
|
||||
|
||||
if (newseeker == newseeker->next_playing) { BREAKPOINT(); }
|
||||
if (newseeker == newseeker->next_playing) {
|
||||
error("updateMultiSong() failed. Breakpoint in %s, line %d\n", __FILE__, __LINE__);
|
||||
}
|
||||
}
|
||||
/* We now need to update the currently playing song list, because we're
|
||||
** going to use some functions that require this list to be in a sane
|
||||
|
@ -441,7 +441,7 @@ static int _sci_midi_process_state(BaseSongIterator *self, byte *buf, int *resul
|
||||
|
||||
default:
|
||||
warning("Invalid iterator state %d!", channel->state);
|
||||
BREAKPOINT();
|
||||
error("Breakpoint in %s, line %d\n", __FILE__, __LINE__);
|
||||
return SI_FINISHED;
|
||||
}
|
||||
}
|
||||
@ -1290,7 +1290,7 @@ static void songit_tee_death_notification(TeeSongIterator *self, SongIterator *c
|
||||
self->_status &= ~TEE_RIGHT_ACTIVE;
|
||||
self->_children[TEE_RIGHT].it = NULL;
|
||||
} else {
|
||||
BREAKPOINT();
|
||||
error("songit_tee_death_notification() failed: Breakpoint in %s, line %d\n", __FILE__, __LINE__);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1580,7 +1580,7 @@ int songit_next(SongIterator **it, byte *buf, int *result, int mask) {
|
||||
if (retval == SI_MORPH) {
|
||||
fprintf(stderr, " Morphing %p (stored at %p)\n", (void *)*it, (void *)it);
|
||||
if (!SIMSG_SEND((*it), SIMSG_ACK_MORPH)) {
|
||||
BREAKPOINT();
|
||||
error("SI_MORPH failed. Breakpoint in %s, line %d\n", __FILE__, __LINE__);
|
||||
} else
|
||||
fprintf(stderr, "SI_MORPH successful\n");
|
||||
}
|
||||
|
@ -41,9 +41,6 @@ void sciprintf(const char *fmt, ...) GCC_PRINTF(1, 2);
|
||||
/** Find first set bit in bits and return its index. Returns 0 if bits is 0. */
|
||||
int sci_ffs(int bits);
|
||||
|
||||
|
||||
#define BREAKPOINT() do { error("Breakpoint in %s, line %d\n", __FILE__, __LINE__); } while(0)
|
||||
|
||||
} // End of namespace Sci
|
||||
|
||||
#endif // SCI_TOOLS_H
|
||||
|
Loading…
Reference in New Issue
Block a user