#include "gsubr.h"
#include "reference-counted.h"
-
using namespace irr;
-
template <typename T>
SCM
IReferenceCounted_drop (SCM obj)
return scm_from_bool (((T) scm_to_pointer (obj))->drop ());
}
-
-extern "C" {
-
- void
- init_reference_counted (void)
- {
- DEFINE_GSUBR ("IrrlichtDevice_drop", 1, 0, 0, IReferenceCounted_drop<IrrlichtDevice*>);
- }
-
+void
+init_reference_counted (void)
+{
+ DEFINE_GSUBR ("IrrlichtDevice_drop", 1, 0, 0, IReferenceCounted_drop<IrrlichtDevice*>);
}