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

Method Initialize

runtime/Initialize.h:60–62  ·  view source on GitHub ↗

* This form of constructor causes its function argument to be invoked * when the object is constructed. When used with a static Initialize * object, this will cause #func to run before main() runs, so that * #func can perform once-only initialization. * * \param func * This function is invoked with no arguments when the object is * constructed. Typica

Source from the content-addressed store, hash-verified

58 * only performs its initialization the first time it is invoked.
59 */
60 Initialize(void (*func)()) {
61 (*func)();
62 }
63
64 /**
65 * This form of constructor causes a new object of a particular class

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected