MCPcopy Index your code
hub / github.com/assaultcube/AC / mul_

Function mul_

source/src/command.cpp:1430–1436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1428COMMANDN(+, add_, "v");
1429
1430void mul_(char **args, int numargs)
1431{
1432 int prod = 1;
1433 if(numargs < 2) numargs = 2; // emulate classic (* ) = 0, (* 2) = 0, (* 2 3) = 6
1434 loopi(numargs) prod *= ATOI(args[i]);
1435 intret(prod);
1436}
1437COMMANDN(*, mul_, "v");
1438
1439void addf_(char **args, int numargs)

Callers

nothing calls this directly

Calls 2

intretFunction · 0.85
loopiFunction · 0.70

Tested by

no test coverage detected