get_prev_activity: Get the previous activity
Description
It takes an external pointer to an activity an returns the previous activity.
Usage
get_prev_activity(activity)
Arguments
activity
an external pointer to the activity.
Value
An external pointer to an activity object.