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