X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Freference-counted.cpp;h=24394a4d850a67dd90d887aecf5f6a4fde4b6ee6;hb=79e12d94cc21232477796a4e76fc2ddb5d88f9dc;hp=ea019b0d27418139cc68c187eab4d221bf1e2f5d;hpb=98052b04792129db97286fdd77ef3b0de8912286;p=guile-irrlicht.git diff --git a/src/reference-counted.cpp b/src/reference-counted.cpp index ea019b0..24394a4 100644 --- a/src/reference-counted.cpp +++ b/src/reference-counted.cpp @@ -23,25 +23,21 @@ #include #include "gsubr.h" #include "reference-counted.h" - +#include "wrapped.h" using namespace irr; - template SCM IReferenceCounted_drop (SCM obj) { - return scm_from_bool (((T) scm_to_pointer (obj))->drop ()); + return scm_from_bool (((T) scm_to_irr_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); + DEFINE_GSUBR ("ISceneNodeAnimator_drop", 1, 0, 0, + IReferenceCounted_drop); }