aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-06-05 20:32:22 +0200
committerTristan Gingold <tgingold@free.fr>2019-06-05 20:32:22 +0200
commit7788d84b06b72c874043541011840f95472ce6e9 (patch)
tree556158f44302d14eeec9204919e4c51f373353f7
parent1ae3bebbc7565975906805dcebe204cb17e7a121 (diff)
downloadghdl-7788d84b06b72c874043541011840f95472ce6e9.tar.gz
ghdl-7788d84b06b72c874043541011840f95472ce6e9.tar.bz2
ghdl-7788d84b06b72c874043541011840f95472ce6e9.zip
python: export Enable_Warning.
-rw-r--r--src/vhdl/python/libghdl/thin/errorout.py4
-rwxr-xr-xsrc/vhdl/python/pnodespy.py4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/vhdl/python/libghdl/thin/errorout.py b/src/vhdl/python/libghdl/thin/errorout.py
index 5a79a5534..809cc919e 100644
--- a/src/vhdl/python/libghdl/thin/errorout.py
+++ b/src/vhdl/python/libghdl/thin/errorout.py
@@ -1,3 +1,7 @@
+from libghdl import libghdl
+
+Enable_Warning = libghdl.errorout__enable_warning
+
class Msgid:
diff --git a/src/vhdl/python/pnodespy.py b/src/vhdl/python/pnodespy.py
index 515c3d1c2..4a2859838 100755
--- a/src/vhdl/python/pnodespy.py
+++ b/src/vhdl/python/pnodespy.py
@@ -231,6 +231,10 @@ def do_libghdl_tokens():
def do_libghdl_errorout():
+ print('from libghdl import libghdl')
+ print("""
+Enable_Warning = libghdl.errorout__enable_warning
+""")
read_enum("../errorout.ads", "Msgid_Type", "(Msgid|Warnid)_", "Msgid",
g=lambda m: m.group(1) + '_' + m.group(2))