cython
changeset 1587:cdf889c30e7a 0.10.3
Better error message for lack of pointer buffers support.
| author | Dag Sverre Seljebotn <dagss@student.matnat.uio.no> |
|---|---|
| date | Tue Dec 16 10:09:52 2008 +0100 (3 years ago) |
| parents | 4a96e1aff2d4 |
| children | 96b7c5cb7407 |
| files | Cython/Compiler/Buffer.py |
line diff
1.1 --- a/Cython/Compiler/Buffer.py Tue Dec 16 10:02:51 2008 +0100
1.2 +++ b/Cython/Compiler/Buffer.py Tue Dec 16 10:09:52 2008 +0100
1.3 @@ -64,6 +64,9 @@
1.4 # for now...note that pos is wrong
1.5 raise CompileError(node.pos, "Buffer vars not allowed in module scope")
1.6 for entry in bufvars:
1.7 + if entry.type.dtype.is_ptr:
1.8 + raise CompileError(node.pos, "Buffers with pointer types not yet supported.")
1.9 +
1.10 name = entry.name
1.11 buftype = entry.type
1.12 if buftype.ndim > self.max_ndim:
