avoid debug dependency
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1340 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
a396b732f7
commit
b5d57af1ee
@ -1470,7 +1470,11 @@ mark_environments(CELL_PTR gc_ENV, OPREG size, CELL *pvbmap)
|
|||||||
if (size < 0) {
|
if (size < 0) {
|
||||||
PredEntry *pe = EnvPreg(gc_ENV[E_CP]);
|
PredEntry *pe = EnvPreg(gc_ENV[E_CP]);
|
||||||
op_numbers op = Yap_op_from_opcode(ENV_ToOp(gc_ENV[E_CP]));
|
op_numbers op = Yap_op_from_opcode(ENV_ToOp(gc_ENV[E_CP]));
|
||||||
|
#if defined(ANALYST) || defined(DEBUG)
|
||||||
fprintf(Yap_stderr,"ENV %p-%p(%d) %s\n", gc_ENV, pvbmap, size-EnvSizeInCells, Yap_op_names[op]);
|
fprintf(Yap_stderr,"ENV %p-%p(%d) %s\n", gc_ENV, pvbmap, size-EnvSizeInCells, Yap_op_names[op]);
|
||||||
|
#else
|
||||||
|
fprintf(Yap_stderr,"ENV %p-%p(%d) %d\n", gc_ENV, pvbmap, size-EnvSizeInCells, (int)op);
|
||||||
|
#endif
|
||||||
if (pe->ArityOfPE)
|
if (pe->ArityOfPE)
|
||||||
fprintf(Yap_stderr," %s/%d\n", RepAtom(NameOfFunctor(pe->FunctorOfPred))->StrOfAE, pe->ArityOfPE);
|
fprintf(Yap_stderr," %s/%d\n", RepAtom(NameOfFunctor(pe->FunctorOfPred))->StrOfAE, pe->ArityOfPE);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user