all repos — hex @ 93a1cd387ec4c621b6fa04068877aa2d46141d07

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

Started defining macros.
h3rald h3rald@h3rald.com
Mon, 25 Nov 2024 08:00:47 +0000
commit

93a1cd387ec4c621b6fa04068877aa2d46141d07

parent

c3694190df9d08718e89d0be239160b781d381d0

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M hex.chex.c

@@ -17,6 +17,7 @@ #include <unistd.h>

#include <sys/wait.h> #endif +#define POP(x) HEX_StackElement x = hex_pop() #define HEX_VERSION "0.1.0" #define HEX_STDIN_BUFFER_SIZE 256 #define HEX_REGISTRY_SIZE 1024

@@ -1066,7 +1067,8 @@ // Definition symbols

int hex_symbol_store() { - HEX_StackElement name = hex_pop(); + //HEX_StackElement name = hex_pop(); + POP(name); if (name.type == HEX_TYPE_INVALID) { hex_free_element(name);