MCPcopy Create free account
hub / github.com/WheretIB/nullc / __operatorIndex

Function __operatorIndex

NULLC/translation/std_math_bind.cpp:115–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115float * __operatorIndex(float2 * a, int index, void* unused)
116{
117 if((unsigned)index >= 2)
118 nullcThrowError("Array index out of bounds");
119 return (float*)&a->x + index;
120}
121
122float * __operatorIndex(float3 * a, int index, void* unused)
123{

Callers

nothing calls this directly

Calls 1

nullcThrowErrorFunction · 0.70

Tested by

no test coverage detected