diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-17 13:49:20 +0200 |
---|---|---|
committer | Unai Martinez-Corral <38422348+umarcor@users.noreply.github.com> | 2021-06-17 22:53:27 +0100 |
commit | f65fff4d5e3a33e83c633eb20fd367e349f3dc92 (patch) | |
tree | 66e3fb6afc69738b28bcaaf908a09c13143615e7 /pyGHDL/libghdl/utils.py | |
parent | 56f8ca47465a7cc052e80c0ed4bab6fc55eeacba (diff) | |
download | ghdl-f65fff4d5e3a33e83c633eb20fd367e349f3dc92.tar.gz ghdl-f65fff4d5e3a33e83c633eb20fd367e349f3dc92.tar.bz2 ghdl-f65fff4d5e3a33e83c633eb20fd367e349f3dc92.zip |
Using a decorator to bind libghdl to Python.
Diffstat (limited to 'pyGHDL/libghdl/utils.py')
-rw-r--r-- | pyGHDL/libghdl/utils.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pyGHDL/libghdl/utils.py b/pyGHDL/libghdl/utils.py index 959c131f4..e964f3ce3 100644 --- a/pyGHDL/libghdl/utils.py +++ b/pyGHDL/libghdl/utils.py @@ -6,14 +6,14 @@ # | .__/ \__, |\____|_| |_|____/|_____(_)_|_|_.__/ \__, |_| |_|\__,_|_| # |_| |___/ |___/ # ============================================================================= -# Authors: -# Tristan Gingold +# Authors: +# Tristan Gingold # # Package module: Generators/iterators and low-level helpers for pyGHDL.libghdl. # # License: # ============================================================================ -# Copyright (C) 2019-2020 Tristan Gingold +# Copyright (C) 2019-2021 Tristan Gingold # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -52,25 +52,25 @@ def name_image(Id: NameId) -> str: return name_table.Get_Name_Ptr(Id) -# @export # FIXME: see above +@export @EnumLookupTable(nodes_meta.fields) def fields_image(idx: int) -> str: """String representation of Nodes_Meta.fields :obj:`idx`.""" -# @export # FIXME: see above +@export @EnumLookupTable(nodes.Iir_Kind) def kind_image(k: int) -> str: """String representation of Nodes.Iir_Kind :obj:`k`.""" -# @export # FIXME: see above +@export @EnumLookupTable(nodes_meta.types) def types_image(t: int) -> str: """String representation of Nodes_Meta.Types :obj:`t`.""" -# @export # FIXME: see above +@export @EnumLookupTable(nodes_meta.Attr) def attr_image(a: int) -> str: """String representation of Nodes_Meta.Attr :obj:`a`.""" |