MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / clamp_int

Function clamp_int

src/builtin/module_builtin_string.cpp:152–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 }
151
152 static inline int clamp_int(int v, int minv, int maxv) {
153 return (v < minv) ? minv : (v > maxv) ? maxv : v;
154 }
155
156 int builtin_string_find1 ( const char *str, const char *substr, int start, Context * context ) {
157 if (!str || !substr || !*str || !*substr)

Callers 5

builtin_string_find1Function · 0.85
builtin_string_rfind1Function · 0.85
builtin_string_slice1Function · 0.85
builtin_string_slice2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected