Update old API to use the new binding.
Have not run the testsuite yet.
This commit is contained in:
parent
2d8c6f0a41
commit
a97b26415e
4 changed files with 739 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
class Wrapper(object):
|
||||
def __init__(self, ptr):
|
||||
assert ptr
|
||||
self.__ptr = ptr
|
||||
|
||||
@property
|
||||
|
|
@ -9,3 +10,6 @@ class Wrapper(object):
|
|||
|
||||
def _extract_ptrs(objs):
|
||||
return [x._ptr for x in objs]
|
||||
|
||||
class LLVMException(Exception):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue