From: Jérémie Astor Date: Fri, 13 Aug 2021 01:15:26 +0000 (+0200) Subject: :art: SimdJson Initial commit [skip ci] X-Git-Tag: nightly~470^2~96 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=6209dd84da37a8544a68a62a465c95470551a3b9;p=gwion.git :art: SimdJson Initial commit [skip ci] --- 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