pyGHDL.libghdl.errorout_memory#

Functions

Classes


Functions

pyGHDL.libghdl.errorout_memory.Install_Handler()[source]#

Install the handlers for reporting errors.

Return type:

None

pyGHDL.libghdl.errorout_memory.Get_Nbr_Messages()[source]#

Get number of error messages available.

Return type:

TypeVar(ErrorIndex, bound= c_int)

Returns:

Number of messages available.

pyGHDL.libghdl.errorout_memory.Get_Error_Record(Idx)[source]#

Get error messages by index Idy as structure Error_Message.

Parameters:

Idx (TypeVar(ErrorIndex, bound= c_int)) – Index from 1 to Nbr_Messages See Get_Nbr_Messages().

Return type:

Error_Message

Returns:

Type: Error_Message

pyGHDL.libghdl.errorout_memory.Get_Error_Message(Idx)[source]#

Get error messages by index Idx as string.

Parameters:

Idx (TypeVar(ErrorIndex, bound= c_int)) – Index from 1 to Nbr_Messages See Get_Nbr_Messages().

Return type:

str

Returns:

Error message.

pyGHDL.libghdl.errorout_memory.Clear_Errors()[source]#

Remove all error messages.

Return type:

None


Classes

class pyGHDL.libghdl.errorout_memory.Error_Message[source]#
IdMsgid_Type

Message error/warning id

GroupGroup_Type;

Whether this is an single message or a related one.

FileSource_File_Entry;

Error soure file.

LineNatural;

The first line is line 1, 0 can be used when line number is not relevant.

OffsetNatural;

Offset in the line. The first character is at offset 0.

LengthNatural;

Length of the location (for a range). It is assumed to be on the same line; use 0 when unknown.

Inheritance

Inheritance diagram of Error_Message

__hash__()#

Return hash(self).

__init__(*args, **kwargs)#
__new__(**kwargs)#
__reduce__()#

Helper for pickle.

_b_base_#

the base object

_b_needsfree_#

whether the object owns the memory or not

_objects#

internal objects tree (NEVER CHANGE THIS OBJECT!)