sgs_ObjAssign [function]
void sgs_ObjAssign( sgs_Context* C, sgs_VarObj** dest, sgs_VarObj* src )
Assign object pointer, handling acquisition/release properly.
*destandsrcmust be NULL or valid pointers to objects.- If
srcis not NULL, it is acquired. - If
*destis not NULL, it is released. - After the function call,
*destis equal tosrc.
