From 6209dd84da37a8544a68a62a465c95470551a3b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Fri, 13 Aug 2021 03:15:26 +0200 Subject: [PATCH] :art: SimdJson Initial commit [skip ci] --- include/opcode.h | 2 ++ plug | 2 +- scripts/opcode.sh | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/opcode.h b/include/opcode.h index 3b2c28ed..cd7219d2 100644 --- a/include/opcode.h +++ b/include/opcode.h @@ -435,6 +435,7 @@ enum { #define Unroll2 (f_instr)eUnroll2 #define OP_MAX (f_instr)eOP_MAX #define DotTmplVal (f_instr)eDotTmplVal +#ifndef __cplusplus ANN static inline void dump_opcodes(const VM_Code code) { gw_out("{Y}┏━━━━┓{0}{-Y} {+}%s{0}\n{Y}┃{0}\n", code->name); m_uint j = 0; @@ -1444,3 +1445,4 @@ ANN static inline void dump_opcodes(const VM_Code code) { gw_out("{Y}┃\n┗━━━━┛{0}\n"); } #endif +#endif diff --git a/plug b/plug index de59c050..23fe7b03 160000 --- a/plug +++ b/plug @@ -1 +1 @@ -Subproject commit de59c0509836ecb3eb7f5fbe2c621db137aa66ab +Subproject commit 23fe7b038d2337b0dbe9e46bad153624f6229f3b diff --git a/scripts/opcode.sh b/scripts/opcode.sh index f3429940..20b0f53c 100644 --- a/scripts/opcode.sh +++ b/scripts/opcode.sh @@ -50,6 +50,7 @@ do [ -z "$a" ] || echo "#define $a (f_instr)e$a" done | column -t +echo "#ifndef __cplusplus" echo "ANN static inline void dump_opcodes(const VM_Code code) {" echo " gw_out(\"{Y}┏━━━━┓{0}{-Y} {+}%s{0}\n{Y}┃{0}\n\", code->name);" echo " m_uint j = 0;" @@ -80,5 +81,5 @@ echo " gw_out(\"{Y}┃\n┗━━━━┛{0}\n\");" echo "}" echo "#endif" - +echo "#endif" echo "generated" "$COUNT" "opcodes" >&2 -- 2.43.0