MCPcopy Create free account
hub / github.com/crosire/reshade / leave_function

Function leave_function

source/effect_codegen_glsl.cpp:2393–2401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2391 return set_block(0);
2392 }
2393 void leave_function() override
2394 {
2395 assert(_current_function != nullptr && _last_block != 0);
2396
2397 _blocks.emplace(_current_function->id, _current_function_declaration + "{\n" + _blocks.at(_last_block) + "}\n");
2398
2399 _current_function = nullptr;
2400 _current_function_declaration.clear();
2401 }
2402};
2403
2404#ifndef RESHADEFX_CODEGEN_GLSL_INLINE

Callers 1

define_entry_pointMethod · 0.70

Calls 3

emplaceMethod · 0.80
atMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected