MCPcopy Create free account
hub / github.com/Illation/ETEngine / GetHeaderString

Function GetHeaderString

Engine/source/EtCooker/CompiledDataGenerator.cpp:69–86  ·  view source on GitHub ↗

--------------------------------- GetHeaderString Returns a string for the file header

Source from the content-addressed store, hash-verified

67// Returns a string for the file header
68//
69std::string GetHeaderString(std::string const& name, std::string const& compiledDataName)
70{
71 return std::string(
72 "// this file is automatically generated, do not edit!\n"
73 "#pragma once\n"
74 "\n"
75 "namespace generated {\n"
76 "\n"
77 "struct wrapper\n"
78 "{\n"
79 "\tstatic unsigned char const ") + compiledDataName + std::string("[];\n"
80 "};\n"
81 "\n"
82 "} // namespace generated\n"
83 "\n"
84 "unsigned char const* GetCompiledData_") + name + std::string("();\n"
85 );
86}
87
88//---------------------------------
89// GetHeaderString

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected