all repos — hex @ 88638bfdb6fec208c59454058432b3667729ffdd

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Fixes.
h3rald h3rald@h3rald.com
Sat, 07 Dec 2024 19:47:38 +0100
commit

88638bfdb6fec208c59454058432b3667729ffdd

parent

e672433747a69aec764610e8d77bf5a6c3c6c838

2 files changed, 3 insertions(+), 4 deletions(-)

jump to
M MakefileMakefile

@@ -6,7 +6,7 @@ hex: hex.c

$(CC) $(CFLAGS) $(LDFLAGS) $< -o hex web/assets/hex.wasm: hex.c - emcc -O2 -sASYNCIFY -sEXPORTED_RUNTIME_METHODS=stringToUTF8 hex.c -o web/assets/hex.js --pre-js web/assets/hex-playground.js + emcc -O2 -sASYNCIFY -DBROWSER -sEXPORTED_RUNTIME_METHODS=stringToUTF8 hex.c -o web/assets/hex.js --pre-js web/assets/hex-playground.js hex.wasm: hex.c emcc -O2 -sASYNCIFY -sEXPORTED_RUNTIME_METHODS=stringToUTF8 hex.c -o hex.js --pre-js hex.node.js
M hex.chex.c

@@ -3884,13 +3884,12 @@ fclose(file);

return content; } -#if defined(BROWSER) && defined(__EMSCRIPTEN__) +#if defined(__EMSCRIPTEN__) && defined(BROWSER) static void prompt() { - printf(">>\n"); // no prompt needed on browser } -#elif !defined(BROWSER) && defined(__EMSCRIPTEN__) +#elif defined(__EMSCRIPTEN__) && !defined(BROWSER) static void prompt() { printf(">\n");