fix constant issue, and make running of test program dependent on successful build

This commit is contained in:
2025-10-09 21:17:29 +02:00
parent 4942d959d5
commit 6e3211ab49
4 changed files with 11 additions and 9 deletions
+6 -4
View File
@@ -25,8 +25,10 @@ static const allocator_vtbl_t stdlib_vtbl = {
.free = stdlib_free,
};
const allocator_t allocator_stdlib = (allocator_t) {
.this=NULL,
.vtbl=&stdlib_vtbl,
};
allocator_t allocator_stdlib() {
return (allocator_t) {
.this=NULL,
.vtbl=&stdlib_vtbl,
};
}