\brief Check that the callback looks valid \throw nothrow Check that the function pointer is not null, and if there are user data that they are not null. */
| 837 | and if there are user data that they are not null. |
| 838 | */ |
| 839 | bool ParserCallback::IsValid() const |
| 840 | { |
| 841 | return GetAddr() != nullptr |
| 842 | && !((m_iArgc & CALLBACK_INTERNAL_WITH_USER_DATA) |
| 843 | && GetUserData() == nullptr); |
| 844 | } |
| 845 | |
| 846 | |
| 847 | /** \brief Return the callback code. */ |
no outgoing calls
no test coverage detected