MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenShadingLanguage / new_struct

Method new_struct

src/liboslexec/typespec.cpp:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124
125int
126TypeSpec::new_struct (StructSpec *n)
127{
128 std::vector<std::shared_ptr<StructSpec> > & m_structs (struct_list());
129 if (m_structs.size() == 0)
130 m_structs.resize (1); // Allocate an empty one
131 m_structs.push_back (std::shared_ptr<StructSpec>(n));
132 return (int)m_structs.size()-1;
133}
134
135
136

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected