U
    +‰d‘  ã                   @   sh   d dl mZ dd„ Zdd„ ZG dd„ dejƒZG dd	„ d	eƒZejejj	_
ejejj_
ejgejj_d
S )é    )Úffic                   C   s   t tj ¡ ƒS ©N)Ú
ContextRefr   ÚlibÚLLVMPY_ContextCreate© r   r   ú</tmp/pip-unpacked-wheel-stw2luzp/llvmlite/binding/context.pyÚcreate_context   s    r	   c                   C   s   t tj ¡ ƒS r   )ÚGlobalContextRefr   r   ÚLLVMPY_GetGlobalContextr   r   r   r   Úget_global_context   s    r   c                       s$   e Zd Z‡ fdd„Zdd„ Z‡  ZS )r   c                    s   t t| ƒ |¡ d S r   )Úsuperr   Ú__init__)ÚselfZcontext_ptr©Ú	__class__r   r   r      s    zContextRef.__init__c                 C   s   t j | ¡ d S r   )r   r   ÚLLVMPY_ContextDispose©r   r   r   r   Ú_dispose   s    zContextRef._dispose)Ú__name__Ú
__module__Ú__qualname__r   r   Ú__classcell__r   r   r   r   r      s   r   c                   @   s   e Zd Zdd„ ZdS )r
   c                 C   s   d S r   r   r   r   r   r   r      s    zGlobalContextRef._disposeN)r   r   r   r   r   r   r   r   r
      s   r
   N)Zllvmlite.bindingr   r	   r   Z	ObjectRefr   r
   ZLLVMContextRefr   r   Úrestyper   r   Úargtypesr   r   r   r   Ú<module>   s   