GLK: Fix build when DEBUG defined

This commit is contained in:
Matthew Duggan 2021-01-11 12:05:14 +09:00
parent e15c3b35db
commit 1ae121a99d
3 changed files with 3 additions and 8 deletions

View File

@ -161,11 +161,6 @@ int errfmt(char *outbuf, int outbufl, const char *fmt, int argc, const erradef *
return(outlen);
}
#ifdef DEBUG
#error longjump unsupported in ScummVM
#endif /* DEBUG */
#ifdef ERR_NO_MACRO

View File

@ -366,7 +366,7 @@ int linfget(lindef *lin)
/* make sure buffer pointer is correct */
lin->linbuf = linf->linfbuf;
LINFDEBUG(printf("%s\n", linf->linfbuf));
LINFDEBUG(debug(10, "%s\n", linf->linfbuf));
/* success */
return FALSE;

View File

@ -178,7 +178,7 @@ mcsseg mcsout(mcscxdef *ctx, uint objid, uchar *ptr, ushort siz,
mcsseg cur;
ushort minsiz = 0;
IF_DEBUG(printf("<< mcsout: objid=%d, ptr=%lx, siz=%u, oldseg=%u >>\n",
IF_DEBUG(debug(10, "<< mcsout: objid=%d, ptr=%lx, siz=%u, oldseg=%u >>\n",
objid, (unsigned long)ptr, siz, oldseg));
/* see if old segment can be reused */
@ -258,7 +258,7 @@ mcsseg mcsout(mcscxdef *ctx, uint objid, uchar *ptr, ushort siz,
void mcsin(mcscxdef *ctx, mcsseg seg, uchar *ptr, ushort siz) {
mcsdsdef *desc = mcsdsc(ctx, seg);
IF_DEBUG(printf("<< mcsin: seg=%u, ptr=%lx, siz=%d, objid=%u >>\n",
IF_DEBUG(debug(10, "<< mcsin: seg=%u, ptr=%lx, siz=%d, objid=%u >>\n",
seg, (unsigned long)ptr, siz, desc->mcsdsobj));
assert(seg < ctx->mcscxmsg);