changeset 361:0106e700d237

fix generate_stub
author anatofuz
date Fri, 26 Jun 2020 19:06:06 +0900
parents 3d7e1c9a852e
children 503256a74f1e
files src/gearsTools/generate_stub.pl
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gearsTools/generate_stub.pl	Fri Jun 26 15:30:42 2020 +0900
+++ b/src/gearsTools/generate_stub.pl	Fri Jun 26 19:06:06 2020 +0900
@@ -573,8 +573,8 @@
                     }
                     $i++;
                 }
-                print $fd "${prev}context->before = C_$codeGearName;\n";
-                print $fd "${prev}goto meta(context, $next->$method);\n";
+                print $fd "${prev}${contextext_name}->before = C_$codeGearName;\n";
+                print $fd "${prev}goto meta(${context_name}, $next->$method);\n";
                 next;
             } elsif(/^(.*)par goto (\w+)\((.*)\);/) {
                 # handling par goto statement