MCPcopy Create free account
hub / github.com/anjo76/angelscript / StringDefaultFactory

Function StringDefaultFactory

sdk/tests/test_feature/source/scriptstring.cpp:630–634  ·  view source on GitHub ↗

This is the default string factory, that is responsible for creating empty string objects, e.g. when a variable is declared

Source from the content-addressed store, hash-verified

628
629// This is the default string factory, that is responsible for creating empty string objects, e.g. when a variable is declared
630static CScriptString *StringDefaultFactory()
631{
632 // Allocate and initialize with the default constructor
633 return new CScriptString();
634}
635
636static CScriptString *StringCopyFactory(const CScriptString &other)
637{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected