diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-11-05 09:44:52 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-11-05 09:44:52 +0400 |
commit | 62f22185546e80b661424b45c88006f8b592d8b1 (patch) | |
tree | 518849699eb9f7299605f6bedc32bc71264816e1 /source/blender/python/generic/bgl.h | |
parent | a71e2c498cbb3c1ec077e38e0fcb8ee1581e4d6b (diff) |
macro formatting & remve some unused code.
Diffstat (limited to 'source/blender/python/generic/bgl.h')
-rw-r--r-- | source/blender/python/generic/bgl.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source/blender/python/generic/bgl.h b/source/blender/python/generic/bgl.h index 5cf9eac8289..6df534a3940 100644 --- a/source/blender/python/generic/bgl.h +++ b/source/blender/python/generic/bgl.h @@ -331,12 +331,13 @@ extern PyTypeObject BGL_bufferType; #define ret_def_GLstring const unsigned char *ret_str; #define ret_set_GLstring ret_str= -#define ret_ret_GLstring \ - if (ret_str) {\ - return PyUnicode_FromString((const char *)ret_str);\ - } else {\ - PyErr_SetString(PyExc_AttributeError, "could not get opengl string");\ - return NULL;\ - } +#define ret_ret_GLstring \ + if (ret_str) { \ + return PyUnicode_FromString((const char *)ret_str); \ + } \ + else { \ + PyErr_SetString(PyExc_AttributeError, "could not get opengl string"); \ + return NULL; \ + } \ #endif /* BGL_H */ |