MCPcopy Index your code
hub / github.com/GJDuck/e9patch / getMethodString

Function getMethodString

src/e9patch/e9json.cpp:1249–1266  ·  view source on GitHub ↗

* Convert a method into a string for error reporting. */

Source from the content-addressed store, hash-verified

1247 * Convert a method into a string for error reporting.
1248 */
1249const char *getMethodString(Method method)
1250{
1251 switch (method)
1252 {
1253 case METHOD_BINARY:
1254 return "binary";
1255 case METHOD_INSTRUCTION:
1256 return "instruction";
1257 case METHOD_PATCH:
1258 return "patch";
1259 case METHOD_TRAMPOLINE:
1260 return "trampoline";
1261 case METHOD_EMIT:
1262 return "emit";
1263 default:
1264 return "???";
1265 }
1266}
1267
1268/*
1269 * Parse a message from the given stream.

Callers 1

parseMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected