add code for struct stuff and fix resize bug

This commit is contained in:
George Hotz 2015-03-18 14:10:00 -07:00
parent 1882235734
commit 7caa3f6796
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#include <stdio.h>
int stacked(int input) {
int plus_2 = input + 2;
int times_5 = input * 5;
return plus_2 + times_5;
}
int main() {
int i;
for (i = 1; i < 4; i++) printf("%d %d\n", i, stacked(i));
}

BIN
tests_manual/stackframetest_x86 Executable file

Binary file not shown.

View File

@ -376,3 +376,6 @@ function on_changes(msg) { DS("changes");
redraw_flags();
} stream.on('changes', on_changes);
// fix the resize problem
window.onresize = redraw_flags;