git ssb

0+

cel / foostudio



Tree: 6cd4730c51cbbdc9bcc196a95d8dd12dba65eef3

Files: 6cd4730c51cbbdc9bcc196a95d8dd12dba65eef3 / tune.h

291 bytesRaw
1#pragma once
2
3typedef float play_fn(void *, double time, float in);
4
5#define struct_init(ptr) _struct_init((void **)ptr, sizeof(*ptr))
6
7static inline int _struct_init(void **ptr, size_t size)
8{
9 if (*ptr) return 0;
10 if ((*ptr = calloc(size, 1))) return 0;
11 return 1;
12}
13
14extern play_fn play;
15

Built with git-ssb-web