#include <libguile.h>
#include "vector2d.h"
-extern "C" {
- irr::core::vector2df
- scm_to_vector2df (SCM vector2d)
- {
- return irr::core::vector2df
- (scm_to_double (scm_car (vector2d)),
- scm_to_double (scm_cadr (vector2d)));
- }
+using namespace irr;
+
+core::vector2df
+scm_to_vector2df (SCM vector2d)
+{
+ return core::vector2df
+ (scm_to_double (scm_car (vector2d)),
+ scm_to_double (scm_cadr (vector2d)));
}
#include <irrlicht/irrlicht.h>
#include <libguile.h>
-extern "C" {
-
- irr::core::vector2df
- scm_to_vector2df (SCM vector2d);
-
-}
+irr::core::vector2df
+scm_to_vector2df (SCM vector2d);
#endif