summaryrefslogtreecommitdiffhomepage
path: root/src/con_.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/con_.c')
-rw-r--r--src/con_.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/con_.c b/src/con_.c
index 54a8e9a..1c9d4a7 100644
--- a/src/con_.c
+++ b/src/con_.c
@@ -78,13 +78,11 @@ DECL_VFUNC_CDECL(void, ConsoleColorPrintf_l4d, 21, const struct con_colour *,
DECL_VFUNC_CDECL(void, ConsoleColorPrintf_p2, 24, const struct con_colour *,
const char *, ...)
-static void initval(struct con_var *v) {
+static inline void initval(struct con_var *v) {
// v->strlen is set to defaultval len in _DEF_CVAR so we don't need to call
// strlen() on each string :)
v->strval = extmalloc(v->strlen);
memcpy(v->strval, v->defaultval, v->strlen);
- // FIXME: technically this can be compile time too, using _Generic. Do that!
- v->fval = atof(v->strval); v->ival = v->fval;
}
// generated by build/codegen.c, defines regcmds() and freevars()