diff options
author | kitty piapiac <kcp@bsd.computer> | 2023-04-15 22:57:36 -0700 |
---|---|---|
committer | kitty piapiac <kcp@bsd.computer> | 2023-04-15 22:57:36 -0700 |
commit | 4136e8f2e1e5da874d58fcea3b1f004b07c9677f (patch) | |
tree | 93350473689fef10155c4598a43fef7374871b47 /mino.c |
init sdl2,opengl
Diffstat (limited to 'mino.c')
-rw-r--r-- | mino.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +#include<stdio.h> +#include<stdlib.h> +#include"mino.h" +#include"graph.h" + +NR V die(IM C*f,...)VA(f,vfprintf(stderr,f,ap),fputc('\n',stderr),exit(1)) +V*make(Uz z){V*p;N(p=malloc(z), die("oom"))R p;} +V*remk(V*p,Uz z){N(p=realloc(p,z),die("oom"))R p;} +V del(V*p){free(p);} + +I main(I ac,C**av){(V)ac,(V)av; + graph_init(); + atexit(graph_deinit); + R 0;} |