:- if(false). /* tests to see if logicmoo utils are installed.. If not, create the predicates it will use */ :- if( \+ current_predicate( wdmsg/1 )). :- meta_predicate(with_visible_leash(0)). with_visible_leash(G):- '$leash'(A, A),'$visible'(V, V), (tracing->CU=trace;CU=notrace), (debugging->CU2=debug;CU2=nodebug),!, call_cleanup(G, (notrace,'$leash'(_, A),'$visible'(_, V),call(CU2),call(CU))). :- meta_predicate(rtrace(0)). rtrace(G):- with_visible_leash(( notrace,leash(-all),visible(+full),leash(+exception),trace,debug, call(G))). :- meta_predicate(must(0)). must(G):- G *->true;throw(must_failed(G)). fresh_line:- flush_output,format(user_error,'~N',[]),flush_output. nop(_). if_debug(_). :- endif. :- endif.