#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)));
}
#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