From b28deedffee1b14e8761712dcca3654325958a68 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Thu, 12 May 2016 11:50:53 +0100 Subject: [PATCH] TermZero for error handling --- include/YapDefs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/YapDefs.h b/include/YapDefs.h index b36683d70..a23cb9ae5 100755 --- a/include/YapDefs.h +++ b/include/YapDefs.h @@ -27,6 +27,12 @@ /* The YAP main types */ #include "YapTerm.h" +/** + This term can never be constructed as a valid term, so it is + used as a "BAD" term +*/ +#define TermZERO ((Term)0) + #else #include "YapConfig.h"