]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
rect
authorJavier Sancho <jsf@jsancho.org>
Sun, 10 May 2020 08:23:26 +0000 (10:23 +0200)
committerJavier Sancho <jsf@jsancho.org>
Sun, 10 May 2020 08:23:26 +0000 (10:23 +0200)
src/rect.cpp
src/rect.h

index 9da526bd5f241905e6af318265a630278271f17a..892afc8a4687b4ce42dcb04b51a79d528879bb0f 100644 (file)
 #include <libguile.h>
 #include "rect.h"
 
-extern "C" {
-
-  irr::core::rect<irr::s32>
-  scm_to_rect_s32 (SCM rect)
-  {
-    return irr::core::rect<irr::s32>
-      (scm_to_int32 (scm_car (rect)),
-       scm_to_int32 (scm_cadr (rect)),
-       scm_to_int32 (scm_caddr (rect)),
-       scm_to_int32 (scm_cadddr (rect)));
-  }
 
+using namespace irr;
+
+
+core::rect<s32>
+scm_to_rect_s32 (SCM rect)
+{
+  return core::rect<s32>
+    (scm_to_int32 (scm_car (rect)),
+     scm_to_int32 (scm_cadr (rect)),
+     scm_to_int32 (scm_caddr (rect)),
+     scm_to_int32 (scm_cadddr (rect)));
 }
index 4e015a198ed0ac84c0e6a7dcaba39bc8a978f962..313965eaee55a32b2040fe06e267bae5c90c67fb 100644 (file)
 #include <irrlicht/irrlicht.h>
 #include <libguile.h>
 
-extern "C" {
-
-  irr::core::rect<irr::s32>
-  scm_to_rect_s32 (SCM rect);
-
-}
+irr::core::rect<irr::s32>
+scm_to_rect_s32 (SCM rect);
 
 #endif