summaryrefslogtreecommitdiffstats
path: root/tools/scripts/makeargs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/scripts/makeargs.py')
-rw-r--r--tools/scripts/makeargs.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/tools/scripts/makeargs.py b/tools/scripts/makeargs.py
index 7db9da82a8..a52812eaff 100644
--- a/tools/scripts/makeargs.py
+++ b/tools/scripts/makeargs.py
@@ -1,5 +1,5 @@
-text="""
+text = """
#define FUNC$numR(m_r,m_func,$argt)\\
virtual m_r m_func($argtp) { \\
if (Thread::get_caller_ID()!=server_thread) {\\
@@ -65,21 +65,21 @@ text="""
-for i in range(1,8):
+for i in range(1, 8):
- tp=""
- p=""
- t=""
+ tp = ""
+ p = ""
+ t = ""
for j in range(i):
- if (j>0):
- tp+=", "
- p+=", "
- t+=", "
- tp +=("m_arg"+str(j+1)+" p"+str(j+1))
- p+=("p"+str(j+1))
- t+=("m_arg"+str(j+1))
-
- t = text.replace("$argtp",tp).replace("$argp",p).replace("$argt",t).replace("$num",str(i))
+ if (j > 0):
+ tp += ", "
+ p += ", "
+ t += ", "
+ tp += ("m_arg" + str(j + 1) + " p" + str(j + 1))
+ p += ("p" + str(j + 1))
+ t += ("m_arg" + str(j + 1))
+
+ t = text.replace("$argtp", tp).replace("$argp", p).replace("$argt", t).replace("$num", str(i))
print(t)