Availability:C-language interface function
fid_t PL_open_foreign_frame()Create a foreign frame, holding a mark that allows the system to undo
bindings and destroy data created after it, as well as providing the
environment for creating term references. This function is called by the
kernel before calling a foreign predicate. Raise a resource exception
(fid_t)0 on failure.