Skip to content

sg::assert_sage_type

asserts that n has type SageNode

Synopses

Declared in <SageIII/sageInterface/sageGeneric.h>

template<class SageNode>
SageNode&
assert_sage_type(
    SgNode& n,
    char const* f = 0,
    size_t ln = 0);
template<class SageNode>
SageNode const&
assert_sage_type(
    SgNode const& n,
    char const* f = 0,
    size_t ln = 0);

asserts that n has type SageNode

template<class SageNode>
SageNode*
assert_sage_type(
    SgNode* n,
    char const* f = 0,
    size_t ln = 0);
template<class SageNode>
SageNode const*
assert_sage_type(
    SgNode const* n,
    char const* f = 0,
    size_t ln = 0);

Created with MrDocs