Constructor¶
SS_PERS_NEW
is a macro defined in sspers.h.
Synopsis:
-
SS_PERS_NEW
(_scope_, _type_, _flags_)¶
Description: This is simply a convenience function for ss_pers_new so that the caller doesn’t have to cast the argument
and return value. The _type_
should be one of the persistent object link datatypes like ss_field_t
, and not
one of the persistent object types like ss_fieldobj_t
.
Return Value: Returns a pointer to a link to the new object on success; null on failure.
Example: .. _SC_SS_PERS_NEW:
1 2 | To create a new Field object:
field = SS_PERS_NEW(scope, ss_field_t, SS_ALLSAME);
|
See Also:
- ss_pers_new: 7.1: Create a new persistent object
- Persistent Objects: Introduction for current chapter