From c83de76ad2f59927cf01bcfbae18a5d598159bb7 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 19 May 2022 12:51:06 +0100 Subject: Properly solve load order issues via deferred init --- src/build/mkentprops.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/build/mkentprops.c') diff --git a/src/build/mkentprops.c b/src/build/mkentprops.c index 321b954..9c366e5 100644 --- a/src/build/mkentprops.c +++ b/src/build/mkentprops.c @@ -163,6 +163,9 @@ F( " has_%s = true;", (*pp)->varname) // > can detect that and set the SPROP_IS_VECTOR_ELEM flag. // apparently if we're loaded via VDF, it hasn't been flipped back // yet. just calling abs() on everything as an easy solution. + // TODO(opt): if we moved this into deferred init we wouldn't need + // to bother with this, but that might involve untangling more + // engineapi stuff F( " %s = abs(*(int *)mem_offset(p, off_SP_offset));", (*pp)->varname) _( " if (!--needprops) break;") -- cgit v1.2.3