aboutsummaryrefslogtreecommitdiff
path: root/xC-gen-proto-js.awk
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-29 16:39:26 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-30 03:24:13 +0200
commit86278c154c0e8f88f3df91298b4fcd40f8c7571b (patch)
treeda2aa0f4786337b7245dc931e56f72b144008839 /xC-gen-proto-js.awk
parent941ee2f10c0c6d273d4d7bf591a48068141e2c56 (diff)
downloadxK-86278c154c0e8f88f3df91298b4fcd40f8c7571b.tar.gz
xK-86278c154c0e8f88f3df91298b4fcd40f8c7571b.tar.xz
xK-86278c154c0e8f88f3df91298b4fcd40f8c7571b.zip
Clean up protocol code generators
Diffstat (limited to 'xC-gen-proto-js.awk')
-rw-r--r--xC-gen-proto-js.awk2
1 files changed, 2 insertions, 0 deletions
diff --git a/xC-gen-proto-js.awk b/xC-gen-proto-js.awk
index 752fd18..40b99ee 100644
--- a/xC-gen-proto-js.awk
+++ b/xC-gen-proto-js.awk
@@ -51,6 +51,8 @@ function define_uint(size, shortname) {
}
function codegen_begin() {
+ print "// Code generated from " FILENAME ". DO NOT EDIT."
+ print ""
print "export class Reader extends DataView {"
print "\tconstructor() {"
print "\t\tsuper(...arguments)"