X-Git-Url: https://git.jsancho.org/?p=guile-irrlicht.git;a=blobdiff_plain;f=src%2Freference-counted.cpp;h=1bdc8daf8737de65dc5791d363a18a6f68d29262;hp=ea019b0d27418139cc68c187eab4d221bf1e2f5d;hb=41a6ad96e81a8d8153c54877c4c12f61100677a9;hpb=bf2cb00e2ef19e2eb33557f900405f836ebe65a3 diff --git a/src/reference-counted.cpp b/src/reference-counted.cpp index ea019b0..1bdc8da 100644 --- a/src/reference-counted.cpp +++ b/src/reference-counted.cpp @@ -24,10 +24,8 @@ #include "gsubr.h" #include "reference-counted.h" - using namespace irr; - template SCM IReferenceCounted_drop (SCM obj) @@ -35,13 +33,8 @@ 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); - } - +void +init_reference_counted (void) +{ + DEFINE_GSUBR ("IrrlichtDevice_drop", 1, 0, 0, IReferenceCounted_drop); }