MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / which

Method which

unittests/catch.hpp:10612–10620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10610 enum Arch { Big, Little };
10611
10612 static Arch which() {
10613 union _{
10614 int asInt;
10615 char asChar[sizeof (int)];
10616 } u;
10617
10618 u.asInt = 1;
10619 return ( u.asChar[sizeof(int)-1] == 1 ) ? Big : Little;
10620 }
10621 };
10622 }
10623

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected