MCPcopy Create free account
hub / github.com/LibreCAD/LibreCAD / IsValid

Method IsValid

libraries/muparser/src/muParserCallback.cpp:839–844  ·  view source on GitHub ↗

\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. */

Source from the content-addressed store, hash-verified

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. */

Callers 4

AddCallbackMethod · 0.80
ParserTokenClass · 0.80
GetArgCountMethod · 0.80
IsOptimizableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected