Struct Callbacks

Struct Documentation

struct Callbacks

a c-style callbacks class

Warning

the error callback must never return: it must either abort or throw an exception. Otherwise, the parser will enter into an infinite loop, or the program may crash.

Public Functions

Callbacks()
Callbacks(void *user_data, pfn_allocate alloc, pfn_free free, pfn_error error_)
inline bool operator!=(Callbacks const &that) const
inline bool operator==(Callbacks const &that) const

Public Members

void *m_user_data
pfn_allocate m_allocate
pfn_free m_free
pfn_error m_error