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

Method create

Source/democpp/SluaTestCase.cpp:60–62  ·  view source on GitHub ↗

constructor function for lua LuaOwnedPtr will hold ptr by lua and auto collect it;

Source from the content-addressed store, hash-verified

58 // constructor function for lua
59 // LuaOwnedPtr will hold ptr by lua and auto collect it;
60 static LuaOwnedPtr<Foo> create(int v) {
61 return new Foo(v);
62 }
63
64 // raw ptr not hold by lua, lua not collect it
65 static const Foo* getInstance() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected