MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / masscompilercallback

Function masscompilercallback

editor/ScriptMassCompile.cpp:478–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478void masscompilercallback(char *str) {
479 MassScriptEditContent += str;
480
481 MassScriptEdit->SetWindowText(MassScriptEditContent.GetBuffer(0));
482
483 int total_lines = MassScriptEdit->GetLineCount();
484 int curr_index = MassScriptEdit->GetFirstVisibleLine();
485 if ((total_lines - curr_index) > 16) {
486 // we need to scroll down a line
487 MassScriptEdit->LineScroll((total_lines - curr_index) - 16);
488 }
489
490 Descent->defer();
491}
492
493bool CScriptMassCompile::Step3(char *filename, bool islevel) {
494 tCompilerInfo ci;

Callers

nothing calls this directly

Calls 2

GetBufferMethod · 0.80
deferMethod · 0.45

Tested by

no test coverage detected