From c552e348691f8cf27afabb9f09679c322380a90d Mon Sep 17 00:00:00 2001 From: David Nogueira <david.nogueira@priberam.com> Date: Mon, 30 May 2016 15:23:30 +0100 Subject: [PATCH] More fixes. --- docs/src/userguide/wrapping_CPlusPlus.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/userguide/wrapping_CPlusPlus.rst b/docs/src/userguide/wrapping_CPlusPlus.rst index 192b007d9..59deff919 100644 --- a/docs/src/userguide/wrapping_CPlusPlus.rst +++ b/docs/src/userguide/wrapping_CPlusPlus.rst @@ -52,7 +52,7 @@ document. Let's assume it will be in a header file called Rectangle(int x0, int y0, int x1, int y1); ~Rectangle(); int getArea(); - void getSize(int* width, int* height) + void getSize(int* width, int* height); void move(int dx, int dy); }; } @@ -247,8 +247,8 @@ forwarding methods. So we can implement the Python extension type as:: self.c_rect = Rectangle(x0, y0, x1, y1) def get_area(self): return self.c_rect.getArea() - def get_size(self) - int width, int height + def get_size(self): + cdef int width, height self.c_rect.getSize(&width, &height) return width, height def move(self, dx, dy): -- 2.30.9