Updated: April 19, 2023 |
Narrow a PiPS entity to a PiPS namespace
#include <pips/publication.h>
pips_namespace_t* pips_namespace_narrow(pips_entity_t *const entity)
This function narrows the definition of the given pips_entity_t instance, expressing it as a pips_namespace_t instance. Runtime type information is used to ensure that the entity can be expressed as a namespace.
A pointer to the current PiPS entity expressed as a namespace. If the runtime constraints aren't satisfied, the operation fails and the function returns NULL.