MCPcopy Create free account
hub / github.com/apitrace/apitrace / command

Function command

cli/cli_diff_state.cpp:58–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static int
59command(int argc, char *argv[])
60{
61 int i;
62
63 os::String command = find_command();
64
65 std::vector<const char *> args;
66 args.push_back(APITRACE_PYTHON_EXECUTABLE);
67 args.push_back(command.str());
68 for (i = 1; i < argc; i++) {
69 args.push_back(argv[i]);
70 }
71 args.push_back(NULL);
72
73 return os::execute((char * const *)&args[0]);
74}
75
76const Command diff_state_command = {
77 "diff-state",

Callers

nothing calls this directly

Calls 3

strMethod · 0.80
find_commandFunction · 0.70
executeFunction · 0.50

Tested by

no test coverage detected