MCPcopy Create free account
hub / github.com/Genivia/RE-flex / write_section_init

Method write_section_init

src/reflex.cpp:2327–2337  ·  view source on GitHub ↗

Write %%init code to lex.yy.cpp

Source from the content-addressed store, hash-verified

2325
2326/// Write %%init code to lex.yy.cpp
2327void Reflex::write_section_init()
2328{
2329 *out << " {\n";
2330 if (!section_init.empty())
2331 write_code(section_init);
2332 if (!options["debug"].empty())
2333 *out << " set_debug(" << options["debug"] << ");\n";
2334 if (!options["perf_report"].empty())
2335 *out << " set_perf_report();\n";
2336 *out << " }\n";
2337}
2338
2339/// Write %%begin code to lex.yy.cpp
2340void Reflex::write_section_begin()

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected