MCPcopy Create free account
hub / github.com/DFHack/dfhack / NullPointer

Method NullPointer

library/Error.cpp:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14NullPointer::NullPointer(const char *varname, const char *func)
15 :All("In " + safe_str(func) + ": NULL pointer: " + safe_str(varname)),
16 varname(varname)
17{}
18
19InvalidArgument::InvalidArgument(const char *expr, const char *func)
20 :All("In " + safe_str(func) + ": Invalid argument; expected: " + safe_str(expr)),

Callers

nothing calls this directly

Calls 1

safe_strFunction · 0.85

Tested by

no test coverage detected