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

Function optfn_warnings

src/options.c:4681–4700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4679#endif /* MSDOS */
4680
4681staticfn int
4682optfn_warnings(
4683 int optidx, int req, boolean negated UNUSED,
4684 char *opts, char *op UNUSED)
4685{
4686 int reslt;
4687
4688 if (req == do_init) {
4689 return optn_ok;
4690 }
4691 if (req == do_set) {
4692 reslt = warning_opts(opts, allopt[optidx].name);
4693 return reslt ? optn_ok : optn_err;
4694 }
4695 if (req == get_val || req == get_cnf_val) {
4696 opts[0] = '\0';
4697 return optn_ok;
4698 }
4699 return optn_ok;
4700}
4701
4702staticfn int
4703optfn_whatis_coord(

Callers

nothing calls this directly

Calls 1

warning_optsFunction · 0.85

Tested by

no test coverage detected