]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
dimension2d
authorJavier Sancho <jsf@jsancho.org>
Thu, 7 May 2020 11:19:24 +0000 (13:19 +0200)
committerJavier Sancho <jsf@jsancho.org>
Thu, 7 May 2020 11:19:24 +0000 (13:19 +0200)
src/dimension2d.cpp
src/dimension2d.h

index cad023c4f1a39c89dba1ee3d1778ec6bf6b89d17..03d4fa653bf015d333ee85941dc373dc8ce4e304 100644 (file)
 #include <libguile.h>
 #include "dimension2d.h"
 
-extern "C" {
 
-  irr::core::dimension2d<irr::u32>
-  scm_to_dimension2d_u32 (SCM dimension2d)
-  {
-    return irr::core::dimension2d<irr::u32>
-      (scm_to_uint32 (scm_car (dimension2d)),
-       scm_to_uint32 (scm_cadr (dimension2d)));
-  }
+using namespace irr;
 
+
+core::dimension2d<u32>
+scm_to_dimension2d_u32 (SCM dimension2d)
+{
+  return core::dimension2d<u32>
+    (scm_to_uint32 (scm_car (dimension2d)),
+     scm_to_uint32 (scm_cadr (dimension2d)));
 }
index 5556e8a72849d9d2b791ce2f014affc8bcfb6aab..534a9058105c6a666e3bf1e97eda0f7363cc13fc 100644 (file)
 #include <irrlicht/irrlicht.h>
 #include <libguile.h>
 
-extern "C" {
-
-  irr::core::dimension2d<irr::u32>
-  scm_to_dimension2d_u32 (SCM dimension2d);
-
-}
+irr::core::dimension2d<irr::u32>
+scm_to_dimension2d_u32 (SCM dimension2d);
 
 #endif