fix constant issue, and make running of test program dependent on successful build
This commit is contained in:
+6
-4
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user