Simplify frame logic.
This commit is contained in:
1 parent
e0524644f8
commit
5f5c1dc5a6
3 files changed
+47
-85
No files matched your search
-15
@@ -86,18 +86,3 @@ stack_ptr stack_pop_block(struct stack* s, stack_ptr p, size_t sz) {
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
#if 0
|
||||
int main() {
|
||||
stack s;
|
||||
stack_init(&s);
|
||||
stack_ptr top = 0;
|
||||
top = stack_push_block(&s, top, sizeof(double));
|
||||
double* d1 = stack_block(&s, top);
|
||||
*d1 = 42;
|
||||
top = stack_push_block(&s, top, sizeof(double));
|
||||
double* d2 = stack_block(&s, top);
|
||||
*d2 = 33;
|
||||
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user