add: dprintf for Windows

This commit is contained in:
2024-01-21 12:54:19 +01:00
parent c733b17acb
commit 85c3c2cbc9
4 changed files with 28 additions and 0 deletions

View File

@@ -7,6 +7,10 @@
#include <stdio.h>
#ifdef _WIN32
extern int dprintf(int stream, const char *format, ...);
#endif
void api_put() {
int mode = state->STACK[state->STACK_IDX--]; // 1 for char, 2 for num
if (mode != 1 && mode != 2) return;