return 1;
}
+/*
+ * Defaultizer because stdio.h shouldn't be used anywhere except here
+ * and inside file.c To prevent mis-match of wrapper-interfaces.
+ */
+void con_default_out() {
+ console.handle_out = stdout;
+}
+void con_default_err() {
+ console.handle_err = stderr;
+}
+
int con_verr(const char *fmt, va_list va) {
return con_write(console.handle_err, fmt, va);
}
LVL_ERROR
};
+void con_default_out();
+void con_default_err();
+
void con_vprintmsg (int level, const char *name, size_t line, const char *msgtype, const char *msg, va_list ap);
void con_printmsg (int level, const char *name, size_t line, const char *msgtype, const char *msg, ...);
void con_cvprintmsg(void *ctx, int lvl, const char *msgtype, const char *msg, va_list ap);
}
}
else {
- /* TODO: stdout without stdout .. */
+ con_default_out();
}
}