fix cross-module global evaluation with new multi-module-capable eval system

This commit is contained in:
Ryan Fleury
2024-10-13 19:25:42 -07:00
parent b45462c740
commit ba0e4ea0c5
3 changed files with 12 additions and 4 deletions
+8
View File
@@ -31,6 +31,11 @@ struct Basics
int d;
};
static OnlyInModule only_in_module_global =
{
1, 2, 3, "foobar",
};
thread_var float tls_a = 1.015625f;
thread_var int tls_b = -100;
@@ -39,6 +44,9 @@ dll_tls_eval_test(void)
{
tls_a *= 1.5f;
tls_b *= -2;
only_in_module_global.x += 1;
only_in_module_global.y += 2;
only_in_module_global.z += 3;
}
export_function void