MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / push

Method push

runtime/Log.h:755–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753 */
754 template<typename T>
755 inline void
756 push(T in) {
757 if (numArgs == totalCapacity)
758 reserve(numArgs + 1);
759
760#pragma GCC diagnostic push
761#pragma GCC diagnostic ignored "-Wstrict-aliasing"
762 if (numArgs < INITIAL_SIZE)
763 *(reinterpret_cast<T*>(&rawArgs[numArgs])) = in;
764 else
765 *(reinterpret_cast<T*>(
766 &rawArgsExtension[numArgs - INITIAL_SIZE])) = in;
767 ++numArgs;
768#pragma GCC diagnostic pop
769 }
770
771 /**
772 * Return the n-th argument to the log statement (0-based).

Callers 2

printSingleArgFunction · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64