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

Method codeend

src/liboslexec/loadshader.cpp:492–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490
491
492void
493OSOReaderToMaster::codeend ()
494{
495 int nextop = (int) m_master->m_ops.size();
496 if (m_codesym >= 0) {
497 // If we were previously chalking up the code to init ops for a
498 // symbol, mark the end.
499 m_master->symbol(m_codesym)->initend (nextop);
500 } else if (m_codesection && m_codesection == "___main___") {
501 // If we were previously reading ops for the ___main___ entry
502 // point, mark its end properly.
503 m_master->m_maincodeend = nextop;
504 }
505}
506
507
508

Callers

nothing calls this directly

Calls 3

initendMethod · 0.80
sizeMethod · 0.45
symbolMethod · 0.45

Tested by

no test coverage detected