more speed stuff.

This commit is contained in:
Vítor Santos Costa
2011-10-02 21:01:14 -03:00
parent 66ae65fe09
commit 43c07f5051
5 changed files with 123 additions and 108 deletions

View File

@@ -380,6 +380,20 @@ Yap_bug_location(yamop *pc)
static char tmpbuf[YAP_BUF_SIZE];
yamop *
Yap_NilError(yap_error_number type, char *format,...)
{
va_list ap;
yamop *res;
va_start (ap, format);
/* now build the error string */
res = Yap_Error(type, TermNil, format, ap);
va_end (ap);
return res;
}
yamop *
Yap_Error(yap_error_number type, Term where, char *format,...)
{