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

Function StdlibAbs

common/script/cstdlib/stdlib.c:117–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115#endif
116
117void StdlibAbs(
118 struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
119{
120 ReturnValue->Val->Integer = abs(Param[0]->Val->Integer);
121}
122
123void StdlibLabs(
124 struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected