Asserts object runtime type and existence

SS_ASSERT_MEM is a macro defined in sserr.h.

Synopsis:

SS_ASSERT_MEM(_obj_, _type_)

Description: The first argument should be an object of the specified type, valid at runtime. If it isn’t then a TYPE error is raised. The _type_ argument is a C datatype like ss_fieldtmpl_t. This function is like SS_ASSERT_TYPE except it also checks that the _obj_ exists in memory (i.e., the object can be dereferenced).

See Also: