diff options
Diffstat (limited to 'trunk/template/vm.inc.tmpl')
-rw-r--r-- | trunk/template/vm.inc.tmpl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/trunk/template/vm.inc.tmpl b/trunk/template/vm.inc.tmpl new file mode 100644 index 0000000000..d152665f80 --- /dev/null +++ b/trunk/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.c' + */ + +<%= +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 +} +%> + |