]> Nishi Git Mirror - gwion.git/commitdiff
:art: SimdJson Initial commit [skip ci]
authorJérémie Astor <fennecdjay@gmail.com>
Fri, 13 Aug 2021 01:15:26 +0000 (03:15 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Fri, 13 Aug 2021 01:15:26 +0000 (03:15 +0200)
include/opcode.h
plug
scripts/opcode.sh

index 3b2c28ed4bbdf2dc5978898b648f1f1bce336cf5..cd7219d2d025dc1f6871d9e84d397e1bc687012b 100644 (file)
@@ -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 de59c0509836ecb3eb7f5fbe2c621db137aa66ab..23fe7b038d2337b0dbe9e46bad153624f6229f3b 160000 (submodule)
--- a/plug
+++ b/plug
@@ -1 +1 @@
-Subproject commit de59c0509836ecb3eb7f5fbe2c621db137aa66ab
+Subproject commit 23fe7b038d2337b0dbe9e46bad153624f6229f3b
index f342994043a3b6f92746b1ade57c3d4ed4834137..20b0f53c67540f7ca200ac452b61026f1aaea676 100644 (file)
@@ -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