MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / TextRefStack

Method TextRefStack

src/newgrf_text.cpp:686–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684 const GRFFile *grffile = nullptr;
685
686 TextRefStack(const GRFFile *grffile, std::span<const int32_t> textstack) : grffile(grffile)
687 {
688 this->stack.reserve(textstack.size() * 4 + 6); // for translations it is reasonable to push 3 word and rotate them
689 for (int32_t value : std::ranges::reverse_view(textstack)) {
690 this->PushDWord(value);
691 }
692 }
693
694 uint8_t PopUnsignedByte()
695 {

Callers

nothing calls this directly

Calls 3

PushDWordMethod · 0.95
reserveMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected