]> git.jsancho.org Git - guile-irrlicht.git/blobdiff - src/box3d.cpp
clean code
[guile-irrlicht.git] / src / box3d.cpp
index 71571b1013b9e59772ca4ac1b02e20e787039fd3..ed56fdc3228f514e9bbf52f30c5d153c5200f69e 100644 (file)
 #include "gsubr.h"
 #include "vector3d.h"
 
-
 using namespace irr;
 
-
 SCM
 aabbox3d_addInternalPoint (SCM box3d,
                            SCM point)
@@ -37,7 +35,6 @@ aabbox3d_addInternalPoint (SCM box3d,
   return SCM_UNSPECIFIED;
 }
 
-
 SCM
 aabbox3d_make ()
 {
@@ -45,7 +42,6 @@ aabbox3d_make ()
   return scm_from_pointer ((void*)aabbox, NULL);
 }
 
-
 SCM
 aabbox3d_reset (SCM box3d,
                 SCM init_value)
@@ -54,15 +50,10 @@ aabbox3d_reset (SCM box3d,
   return SCM_UNSPECIFIED;
 }
 
-
-extern "C" {
-
-  void
-  init_box3d (void)
-  {
-    DEFINE_GSUBR ("aabbox3d_addInternalPoint", 2, 0, 0, aabbox3d_addInternalPoint);
-    DEFINE_GSUBR ("aabbox3d_make", 0, 0, 0, aabbox3d_make);
-    DEFINE_GSUBR ("aabbox3d_reset", 2, 0, 0, aabbox3d_reset);
-  }
-
+void
+init_box3d (void)
+{
+  DEFINE_GSUBR ("aabbox3d_addInternalPoint", 2, 0, 0, aabbox3d_addInternalPoint);
+  DEFINE_GSUBR ("aabbox3d_make", 0, 0, 0, aabbox3d_make);
+  DEFINE_GSUBR ("aabbox3d_reset", 2, 0, 0, aabbox3d_reset);
 }