[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19717] trunk/blender/source/blender/ python/api2_2x/BGL.h: [#18517] Python scripts segfault on loading

Campbell Barton ideasman42 at gmail.com
Tue Apr 14 19:19:09 CEST 2009


Revision: 19717
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19717
Author:   campbellbarton
Date:     2009-04-14 19:19:09 +0200 (Tue, 14 Apr 2009)

Log Message:
-----------
[#18517] Python scripts segfault on loading
own error, EXPP_incr_ret from a macro was an implicit decloration in BGL.c
For some reason this only crashed on 64bit linux

To my defence the BGE makes so many warnings that they become usless, need to improve the situation here at some point.

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/BGL.h

Modified: trunk/blender/source/blender/python/api2_2x/BGL.h
===================================================================
--- trunk/blender/source/blender/python/api2_2x/BGL.h	2009-04-14 17:13:21 UTC (rev 19716)
+++ trunk/blender/source/blender/python/api2_2x/BGL.h	2009-04-14 17:19:09 UTC (rev 19717)
@@ -304,7 +304,8 @@
 
 #define ret_def_void
 #define ret_set_void
-#define ret_ret_void    return EXPP_incr_ret(Py_None)
+/* would use Py_RETURN_NONE - except for py 2.3 doesnt have it */
+#define ret_ret_void    { Py_INCREF(Py_None); return Py_None; }
 
 #define ret_def_GLint   int ret_int
 #define ret_set_GLint   ret_int=





More information about the Bf-blender-cvs mailing list