MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / visitLabels

Method visitLabels

src/simulate/simulate_visit.cpp:823–835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821 }
822
823 void SimNode_Block::visitLabels ( SimVisitor & vis ) {
824 if ( labels ) {
825 V_ARG(totalLabels);
826 for ( uint32_t i=0, is=totalLabels; i!=is; ++i ) {
827 if ( labels[i]!=-1U ) {
828 char name[32];
829 auto result = fmt::format_to(name, FMT_STRING("label_{}"), i);
830 *result = 0;
831 vis.arg(labels[i], name);
832 }
833 }
834 }
835 }
836
837 SimNode * SimNode_Block::visit ( SimVisitor & vis ) {
838 V_BEGIN_CR();

Callers

nothing calls this directly

Calls 2

format_toFunction · 0.50
argMethod · 0.45

Tested by

no test coverage detected