void *qccHunkAlloc(size_t mem) { mem = (mem + 7)&~7; qccalloced+=mem; if (qccalloced > qcchunksize) QCC_Error(ERR_INTERNAL, "Compile hunk was filled"); memset(qcchunk+qccalloced-mem, 0, mem); return qcchunk+qccalloced-mem; }
void Sys_Error(const char *text, ...) { va_list argptr; static char msg[2048]; va_start (argptr,text); QC_vsnprintf (msg,sizeof(msg)-1, text,argptr); va_end (argptr); QCC_Error(ERR_INTERNAL, "%s", msg); }