MCPcopy Create free account
hub / github.com/NetHack/NetHack / insert_rtoption

Function insert_rtoption

src/version.c:338–353  ·  view source on GitHub ↗

* 3.6.0 * Some optional stuff is no longer available to makedefs because * it depends which of several object files got linked into the * game image, so we insert those options here. */

Source from the content-addressed store, hash-verified

336 * game image, so we insert those options here.
337 */
338staticfn void
339insert_rtoption(char *buf)
340{
341 int i;
342
343 if (!gl.lua_ver[0])
344 get_lua_version();
345
346 for (i = 0; i < SIZE(rt_opts); ++i) {
347 if (strstri(buf, rt_opts[i].token) && *rt_opts[i].value) {
348 (void) strsubst(buf, rt_opts[i].token, rt_opts[i].value);
349 }
350 /* we don't break out of the loop after a match; there might be
351 other matches on the same line */
352 }
353}
354
355#ifdef MICRO
356boolean

Callers 1

doextversionFunction · 0.85

Calls 3

get_lua_versionFunction · 0.85
strstriFunction · 0.85
strsubstFunction · 0.85

Tested by

no test coverage detected