Skip to content

Instantly share code, notes, and snippets.

@albertsun
Created February 18, 2012 21:11
Show Gist options
  • Save albertsun/1861030 to your computer and use it in GitHub Desktop.
Save albertsun/1861030 to your computer and use it in GitHub Desktop.
# Make sure ctypes can find simple tiles
import ctypes
from ctypes import *
from ctypes.util import find_library
library = ctypes.CDLL(find_library("simple-tiles"))
simplet_map_new = library.simplet_map_new
simplet_map_new.restype = POINTER(c_void_p)
map_p = simplet_map_new()
print(type(map_p))
library.simplet_map_free(map_p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment