MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / invert

Function invert

other_src/lua/src/lpeg.cpp:838–845  ·  view source on GitHub ↗

** invert array slice p[0]-p[e] (both inclusive) */

Source from the content-addressed store, hash-verified

836** invert array slice p[0]-p[e] (both inclusive)
837*/
838static void invert (Instruction *p, int e) {
839 int i;
840 for (i = 0; i < e; i++, e--) {
841 Instruction temp = p[i];
842 p[i] = p[e];
843 p[e] = temp;
844 }
845}
846
847
848/*

Callers 1

rotateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected