MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / baseName

Function baseName

common/script/scriptargs.cpp:37–47  ·  view source on GitHub ↗

picoc's own diagnostics are terse and unpunctuated; match them.

Source from the content-addressed store, hash-verified

35namespace {
36 // picoc's own diagnostics are terse and unpunctuated; match them.
37 const char* baseName(enum BaseType base)
38 {
39 switch (base) {
40 case TypeInt:
41 return "int";
42 case TypePointer:
43 return "pointer";
44 default:
45 return "value";
46 }
47 }
48}
49
50void ScriptArgs::fail(const char* fmt, ...) const

Callers 2

intAtMethod · 0.85
ptrAtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected