diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-12-14 19:17:34 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-12-14 19:17:34 +0100 |
commit | fe1d817d034d969e012faaa661238ff1587aed25 (patch) | |
tree | a755428e51a8546b9c6e73e847c21eaac85b87f2 /src/vhdl/python | |
parent | e81ab8a4d7dbfb8891d9c3263a816a30d80bde89 (diff) | |
download | ghdl-fe1d817d034d969e012faaa661238ff1587aed25.tar.gz ghdl-fe1d817d034d969e012faaa661238ff1587aed25.tar.bz2 ghdl-fe1d817d034d969e012faaa661238ff1587aed25.zip |
thinutils: create name_image.
Diffstat (limited to 'src/vhdl/python')
-rw-r--r-- | src/vhdl/python/libghdl/thinutils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vhdl/python/libghdl/thinutils.py b/src/vhdl/python/libghdl/thinutils.py index 1e8ee417d..8fc01d434 100644 --- a/src/vhdl/python/libghdl/thinutils.py +++ b/src/vhdl/python/libghdl/thinutils.py @@ -9,6 +9,8 @@ from libghdl.nodes_meta import (Attr, types) Null_Iir = 0 Null_Iir_List = 0 +def name_image(nameid): + return thin.Get_Name_Ptr(nameid).decode('utf-8') def _build_enum_image(cls): d = [e for e in dir(cls) if e[0] != '_'] |