update stuff

This commit is contained in:
alessandro bason 2025-06-15 11:32:55 +02:00
parent 6d36aa4442
commit 95d74c2ef4
13 changed files with 1196 additions and 48 deletions

8
core.c
View file

@ -19,9 +19,11 @@
colla_modules_e colla__initialised_modules = 0;
extern void os_init(void);
extern void net_init(void);
extern void os_cleanup(void);
#if !COLLA_NO_NET
extern void net_init(void);
extern void net_cleanup(void);
#endif
static char *colla_fmt__stb_callback(const char *buf, void *ud, int len) {
fflush(stdout);
@ -34,9 +36,11 @@ void colla_init(colla_modules_e modules) {
if (modules & COLLA_OS) {
os_init();
}
#if !COLLA_NO_NET
if (modules & COLLA_NET) {
net_init();
}
#endif
}
void colla_cleanup(void) {
@ -44,9 +48,11 @@ void colla_cleanup(void) {
if (modules & COLLA_OS) {
os_cleanup();
}
#if !COLLA_NO_NET
if (modules & COLLA_NET) {
net_cleanup();
}
#endif
}
int fmt_print(const char *fmt, ...) {