diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-24 20:05:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-24 20:05:51 +0400 |
commit | 15289c60480a31a4064e7132cb208b01cabfdd1b (patch) | |
tree | 74324877b02b8a8f8d1597a0911bbe3408a621cf /source/blender/python/generic/bgl.c | |
parent | 357ce169589d70b610865a76788a1f1756ff231c (diff) |
use PyDoc_STRVAR macro, so its possible to build without docstrings.
Diffstat (limited to 'source/blender/python/generic/bgl.c')
-rw-r--r-- | source/blender/python/generic/bgl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/python/generic/bgl.c b/source/blender/python/generic/bgl.c index 730db73e685..4eb6d78bd7b 100644 --- a/source/blender/python/generic/bgl.c +++ b/source/blender/python/generic/bgl.c @@ -45,7 +45,7 @@ #include "BLI_utildefines.h" -static char Method_Buffer_doc[] = +PyDoc_STRVAR(Method_Buffer_doc, "(type, dimensions, [template]) - Create a new Buffer object\n\n\ (type) - The format to store data in\n\ (dimensions) - An int or sequence specifying the dimensions of the buffer\n\ @@ -59,7 +59,8 @@ will have len(sequence) dimensions, where the size for each dimension\n\ is determined by the value in the sequence at that index.\n\n\ For example, passing [100, 100] will create a 2 dimensional\n\ square buffer. Passing [16, 16, 32] will create a 3 dimensional\n\ -buffer which is twice as deep as it is wide or high."; +buffer which is twice as deep as it is wide or high." +); static PyObject *Method_Buffer( PyObject * self, PyObject *args ); |