summaryrefslogtreecommitdiffhomepage
path: root/src/build
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-05-19 12:51:06 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-05-19 12:57:55 +0100
commitc83de76ad2f59927cf01bcfbae18a5d598159bb7 (patch)
tree5b1ba849cf2f710be0e57e6a55c00c2871cc9cf1 /src/build
parentfb9720610488c2d8da1bd77739b01d8275735b49 (diff)
Properly solve load order issues via deferred init
Diffstat (limited to 'src/build')
-rw-r--r--src/build/mkentprops.c3
1 files changed, 3 insertions, 0 deletions
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;")