Browse Source

Generate StatusCode definitions with nicer docs formatting

Julius Pfrommer 5 years ago
parent
commit
2c66df65d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/generate_statuscode_descriptions.py

+ 1 - 1
tools/generate_statuscode_descriptions.py

@@ -53,7 +53,7 @@ printh(u'''/*---------------------------------------------------------
 ''' % (args.statuscodes, sys.argv[0]))
 
 for row in rows:
-    printh(u"#define UA_STATUSCODE_%s %s /* %s */" % (row[0].upper(), row[1], row[2]))
+    printh(u"/* %s */\n#define UA_STATUSCODE_%s %s\n" % (row[2], row[0].upper(), row[1]))
 
 #########################
 # Print the source file #