MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / getInstance

Method getInstance

Source/democpp/SluaTestCase.cpp:65–68  ·  view source on GitHub ↗

raw ptr not hold by lua, lua not collect it

Source from the content-addressed store, hash-verified

63
64 // raw ptr not hold by lua, lua not collect it
65 static const Foo* getInstance() {
66 static Foo s_inst(2048);
67 return &s_inst;
68 }
69
70 EInputEvent testEnum(const char* v, EInputEvent evt) {
71 Log::Log("get text %s, evt is %d", v, evt);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected