summaryrefslogtreecommitdiff
path: root/jni/ruby/template/vm.inc.tmpl
diff options
context:
space:
mode:
authorJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-16 18:49:26 +0900
committerJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-30 00:39:06 +0900
commitfcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch)
tree64cb17de3f41a2b6fef2368028fbd00349946994 /jni/ruby/template/vm.inc.tmpl
Fresh start
Diffstat (limited to 'jni/ruby/template/vm.inc.tmpl')
-rw-r--r--jni/ruby/template/vm.inc.tmpl29
1 files changed, 29 insertions, 0 deletions
diff --git a/jni/ruby/template/vm.inc.tmpl b/jni/ruby/template/vm.inc.tmpl
new file mode 100644
index 0000000..11c6d1b
--- /dev/null
+++ b/jni/ruby/template/vm.inc.tmpl
@@ -0,0 +1,29 @@
+/* -*-c-*- *********************************************************/
+/*******************************************************************/
+/*******************************************************************/
+/**
+ This file is VM main loop.
+
+ ----
+ This file is auto generated by insns2vm.rb
+ DO NOT TOUCH!
+
+ If you want to fix something, you must edit 'insns.def'
+ */
+
+<%=
+line = 15
+vm_body.gsub(/\n|__CURRENT_LINE__|__CURRENT_FILE__/){
+ e = $&
+ case e
+ when '__CURRENT_LINE__'
+ line.to_s
+ when '__CURRENT_FILE__'
+ "vm.inc"
+ else
+ line += 1
+ e
+ end
+}
+%>
+