MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / as_pointer

Method as_pointer

Source/Utils/dukglue/dukvalue.h:348–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346 }
347
348 inline void* as_pointer() const {
349 if (mType != POINTER && mType != NULLREF)
350 throw DukException() << "Expected pointer or null, got " << type_name();
351 return mPOD.pointer;
352 }
353
354 inline const std::string& as_string() const {
355 if (mType != STRING)

Callers

nothing calls this directly

Calls 2

DukExceptionClass · 0.85
type_nameFunction · 0.85

Tested by

no test coverage detected