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

Method as_c_string

Source/Utils/dukglue/dukvalue.h:360–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358 }
359
360 inline const char* as_c_string() const {
361 if (mType != STRING)
362 throw DukException() << "Expected string, got " << type_name();
363 return mString.data();
364 }
365
366 inline Type type() const {
367 return mType;

Callers

nothing calls this directly

Calls 2

DukExceptionClass · 0.85
type_nameFunction · 0.85

Tested by

no test coverage detected