I often used SWI-Prolog's feature of being able to do listing(predicate). to see how it implements some of its predicates. I want to see exactly what it does with succ/2 because I'm using it on SWI-Prolog but I need it running with Sicstus too which doesn't have it! I've seen what it does in the SWI manual, tried to implement it but I think it must do something extra to what I've tried. My problem is that the listing feature just gives
% Foreign: succ/2
Any ideas guys?
Thanks :).