diff options
author | Jakob Stendahl <jakob.stendahl@outlook.com> | 2018-03-20 00:32:23 +0100 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2018-03-20 00:32:23 +0100 |
commit | dbca738c3b580df884e766f0799d2a2a3847bdc1 (patch) | |
tree | 87070ab9d8da95968eaa2427a7fd8ce0881b1415 | |
parent | 5700385f2c2eab15c596a39477eb046543b605d5 (diff) | |
download | memConfigger-dbca738c3b580df884e766f0799d2a2a3847bdc1.tar.gz memConfigger-dbca738c3b580df884e766f0799d2a2a3847bdc1.zip |
Added a description to the generated function
-rw-r--r-- | memConfigger.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/memConfigger.py b/memConfigger.py index 07f049e..594f9f3 100644 --- a/memConfigger.py +++ b/memConfigger.py @@ -106,7 +106,12 @@ with open(sys.argv[1].split('.')[0] + ".out.adoc", "w") as hOut: # Print C++ code, this block WILL remove the first item of the list, so beware!!! with open(sys.argv[1].split('.')[0] + ".out.cpp", "w") as cppOut: - cppOut.write("#region GENERATED_CODE\n") + cppOut.write("#region ADDR_FUNC\n") + cppOut.write("// Machine-generated function, unnescecary to change manually\n") + cppOut.write("// The generator is here https://github.com/JakobS1n/memConfigger\n") + cppOut.write("// There should be a more readable version of this table somewhere\n") + cppOut.write("// Refeer to that when determening what type each variable is!\n") + cppOut.write("struct memoryAdress memoryAccess::getAddress(String varName) {\n") cppOut.write("\tmemoryAdress tmp;\n") |