search for: ownershiperror

Displaying 3 results from an estimated 3 matches for "ownershiperror".

2008 May 13
2
[LLVMdev] Python bindings available.
...ptr, owner): self.ptr = ptr self.owner = owner def __del__(self): # Do not call the dtor if something else has committed to do so for us! if !self.owner: _core.LLVMDisposePet(self.ptr) class Owner(pet): @staticmethod def new(): if pet.owner: raise OwnershipError("Pet already owned!") return Owner(_core.LLVMCreateOwner(pet.ptr), pet) def __init__(self, ptr, kid): self.ptr = ptr pet.owner = self def add(self, pet): if (pet.owner) raise OwnershipError("Pet already owned!") _core.LLVMAddPet(pet.ptr)...
2008 May 13
0
[LLVMdev] Python bindings available.
On Tue, May 13, 2008 at 1:22 PM, Gordon Henriksen <gordonhenriksen at mac.com> wrote: > On 2008-05-13, at 02:12, Mahadevan R wrote: > > >>> That's not how the object works... > > > > Gordon, I think I can make it work if we have the following additional > > function in LLVM-C: > > > > LLVMModuleRef LLVMGetModule(LLVMModuleProviderRef
2008 May 13
2
[LLVMdev] Python bindings available.
On 2008-05-13, at 02:12, Mahadevan R wrote: >>> That's not how the object works... > > Gordon, I think I can make it work if we have the following additional > function in LLVM-C: > > LLVMModuleRef LLVMGetModule(LLVMModuleProviderRef MP) { > return wrap(unwrap(MP)->getModule()); > } Can I ask, how general is your solution? I only intended to use this