summaryrefslogtreecommitdiff
path: root/cffi/model.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-04-15 18:13:31 +0200
committerArmin Rigo <arigo@tunes.org>2015-04-15 18:13:31 +0200
commit3bcc9328587cfb85984328e4bedae432c9adda73 (patch)
tree1ba97155ef87f189b6866c0d3d4aec826284dc30 /cffi/model.py
parent7d5bc5688b7a921e09f56c8fe04441b1b73ebdbf (diff)
downloadcffi-3bcc9328587cfb85984328e4bedae432c9adda73.tar.gz
Starting working on the "recompiler"
Diffstat (limited to 'cffi/model.py')
-rw-r--r--cffi/model.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cffi/model.py b/cffi/model.py
index dc0fa4a..06d1ad9 100644
--- a/cffi/model.py
+++ b/cffi/model.py
@@ -169,6 +169,9 @@ class FunctionPtrType(BaseFunctionType):
return global_cache(self, ffi, 'new_function_type',
tuple(args), result, self.ellipsis)
+ def as_raw_function(self):
+ return RawFunctionType(self.args, self.result, self.ellipsis)
+
class PointerType(BaseType):
_attrs_ = ('totype',)