aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2018-03-20 20:49:01 +0100
committerJakob Stendahl <jakob.stendahl@outlook.com>2018-03-20 20:49:01 +0100
commit91a66f008bcd0192a89815f35320da5b1392135a (patch)
tree1b8f7a8762b029c760bf1bd28782b74ce2321d27
parentdbca738c3b580df884e766f0799d2a2a3847bdc1 (diff)
downloadmemConfigger-91a66f008bcd0192a89815f35320da5b1392135a.tar.gz
memConfigger-91a66f008bcd0192a89815f35320da5b1392135a.zip
Changed region to be an actual c++-regionHEADmaster
-rw-r--r--memConfigger.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/memConfigger.py b/memConfigger.py
index 594f9f3..6c9d150 100644
--- a/memConfigger.py
+++ b/memConfigger.py
@@ -106,12 +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 ADDR_FUNC\n")
+ cppOut.write("#pragma 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")
@@ -125,5 +125,5 @@ with open(sys.argv[1].split('.')[0] + ".out.cpp", "w") as cppOut:
cppOut.write("\treturn tmp;\n")
cppOut.write("}\n")
- cppOut.write("#endregion")
+ cppOut.write("#pragma endregion End of generated lookup-table")
print ("CPP-function was made : \"" + sys.argv[1].split('.')[0] + ".out.cpp\".")