MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / invoke_callback

Method invoke_callback

src/apputils/argparse.cpp:259–273  ·  view source on GitHub ↗

Call the sublist callback if any arguments have been parsed

Source from the content-addressed store, hash-verified

257
258// Call the sublist callback if any arguments have been parsed
259int
260ArgOption::invoke_callback () const
261{
262 assert (m_count == 1);
263
264 int argc = (int) m_argv.size();
265 if (argc == 0)
266 return 0;
267
268 // Convert the argv's to char*[]
269 const char **myargv = (const char **) alloca (argc * sizeof(const char *));
270 for (int i = 0; i < argc; ++i)
271 myargv[i] = m_argv[i].c_str();
272 return invoke_callback (argc, myargv);
273}
274
275
276

Callers 1

parseMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected