Open GoogleCodeExporter opened 9 years ago
Alternatively , we could define the functions by putting something like this in
the global scope of the generated module for each function we wanted to export:
def malloc(arg1):
global malloc
malloc = libc["malloc"]
malloc.argtypes = [c_int]
malloc.restype = c_void_p
return malloc(arg1)
Here I've used libc's malloc() as an example (and probably gotten some of the
details wrong).
Original comment by TimM...@gmail.com
on 21 May 2011 at 6:55
Original issue reported on code.google.com by
mozbug...@gmail.com
on 21 May 2011 at 6:30