X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Freference-counted.cpp;h=1bdc8daf8737de65dc5791d363a18a6f68d29262;hb=628a77dba18dafeb65442f5a1c7d5121ff49e5da;hp=ea019b0d27418139cc68c187eab4d221bf1e2f5d;hpb=98052b04792129db97286fdd77ef3b0de8912286;p=guile-irrlicht.git 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); }