redefine MAX_DEPTH as MAX_BRANCH_DEPTH to avoid conflits with yap2swi

library
This commit is contained in:
Ricardo Rocha
2009-06-24 20:00:51 +01:00
parent 3397e97732
commit 3ccad9aff2
5 changed files with 5 additions and 5 deletions

View File

@@ -204,7 +204,7 @@ void share_private_nodes(int worker_q) {
OrFr_nearest_livenode(previous_or_frame) = OrFr_next(previous_or_frame) = or_frame;
}
/* update depth */
if (depth >= MAX_DEPTH)
if (depth >= MAX_BRANCH_DEPTH)
Yap_Error(INTERNAL_ERROR, TermNil, "maximum depth exceded (share_private_nodes)");
or_frame = B->cp_or_fr;
while (or_frame != LOCAL_top_or_fr) {