I obviously need a teddy bear. Just as I had written that, I realized that LOW_PARENT_INFO() doesn't return a pointer to the object, but to to a struct, which _contains_ a pointer to the object.
LOW_PARENT_INFO(Pike_fp->current_object, p)->parent
did exactly what I wanted...
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2002-11-22 00:53: Subject: parent object
How do you get the parent object from C? I have tried LOW_PARENT_INFO(Pike_fp->current_object, p) with p being both the enclosed and enclosing programs, but I don't seem to get the right value. (And yes, I have set PROGRAM_USES_PARENT on the enclosed program.)
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)