shithub: MicroHs

Download patch

ref: 6741fcb696a4d4f70d5697c4ee079601e69b7bbc
parent: db16f46fa7757c6bca1d8a9fdda3a23ede5ccdae
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Thu Aug 1 12:26:36 EDT 2024

Get rid of a debug printf.

--- a/src/runtime/eval.c
+++ b/src/runtime/eval.c
@@ -3142,8 +3142,8 @@
   NODEPTR top;
 
 /* IO operations need all arguments, anything else should not happen. */
-#define CHECKIO(n) do { if (stack_ptr - stk != (n)+1) {printf("\nLINE=%d\n", __LINE__); ERR("CHECKIO");}; } while(0)
-  /* #define RETIO(p) do { stack_ptr = stk; return (p); } while(0)*/
+#define CHECKIO(n) do { if (stack_ptr - stk != (n)+1) {/*printf("\nLINE=%d\n", __LINE__);*/ ERR("CHECKIO");}; } while(0)
+/* #define RETIO(p) do { stack_ptr = stk; return (p); } while(0)*/
 #define GCCHECKSAVE(p, n) do { PUSH(p); GCCHECK(n); (p) = TOP(0); POP(1); } while(0)
 #define RETIO(p) do { stack_ptr = stk; res = (p); goto rest; } while(0)
 #define IOASSERT(p,s) do { if (!(p)) ERR("IOASSERT " s); } while(0)
--