changeset 521:393e1d2d06f2

fix about no argument code gear of generate_stub.pl
author mir3636
date Wed, 10 Jan 2018 23:13:51 +0900
parents 4090950d1a79
children bc1616e1e172
files src/parallel_execution/generate_stub.pl
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/generate_stub.pl	Sun Jan 07 07:25:46 2018 +0900
+++ b/src/parallel_execution/generate_stub.pl	Wed Jan 10 23:13:51 2018 +0900
@@ -333,6 +333,9 @@
                 if ($args=~/^struct Context\s*\*\s*context/) {
                     $newArgs = "";
                 }
+                if (!$args){
+                    $newArgs = "struct Context *context";
+                }
                 while($args) {
                     if ($args =~ s/(^\s*,\s*)//) {
                         $newArgs .= $1;