From: Benjamin Drung <benjamin.drung@canonical.com>
Date: Fri, 5 Apr 2024 02:21:21 +0200
Subject: Add support for Cython 3
Bug-Debian: https://bugs.debian.org/1068428

See https://cython.readthedocs.io/en/latest/src/userguide/migrating_to_cy30.html

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
---
 src/declarations.pyx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/declarations.pyx b/src/declarations.pyx
index b69a0e1..f274ad6 100755
--- a/src/declarations.pyx
+++ b/src/declarations.pyx
@@ -80,8 +80,8 @@ cdef extern from "ode/ode.h":
         dVector3 f2
         dVector3 t2
 
-    ctypedef void dNearCallback(void* data, dGeomID o1, dGeomID o2)
-    ctypedef dReal dHeightfieldGetHeight( void* p_user_data, int x, int z )
+    ctypedef void dNearCallback(void* data, dGeomID o1, dGeomID o2) except *
+    ctypedef dReal dHeightfieldGetHeight( void* p_user_data, int x, int z ) except *
 
     ctypedef void dGetAABBFn (dGeomID, dReal aabb[6])
     ctypedef int dColliderFn (dGeomID o1, dGeomID o2, int flags, dContactGeom *contact, int skip)
@@ -322,7 +322,7 @@ cdef extern from "ode/ode.h":
     void dBodySetGravityMode (dBodyID b, int mode)
     int dBodyGetGravityMode (dBodyID b)
 
-    void dBodySetMovedCallback(dBodyID b, void (*callback)(dBodyID))
+    void dBodySetMovedCallback(dBodyID b, void (*callback)(dBodyID) except *)
 
     dGeomID dBodyGetFirstGeom (dBodyID b)
     dGeomID dBodyGetNextGeom (dGeomID g)
