Recursion is extremely natural in Prolog, so bringing the wrath of resource monitors down upon yourself is a snap.
r(X) :- r(X).