From 1fc7a33f7bfeb04e92d190149fded09ad78f23e1 Mon Sep 17 00:00:00 2001 From: Lars Kanis <kanis@comcard.de> Date: Fri, 9 Mar 2012 09:04:39 +0100 Subject: [PATCH] Add trace output in FXRbUnregisterRubyObj --- ext/fox16/FXRuby.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/fox16/FXRuby.cpp b/ext/fox16/FXRuby.cpp index 6317a61..81d6b2e 100644 --- a/ext/fox16/FXRuby.cpp +++ b/ext/fox16/FXRuby.cpp @@ -269,6 +269,7 @@ void FXRbUnregisterRubyObj(const void* foxObj){ if(foxObj!=0){ FXRubyObjDesc* desc; if(st_lookup(FXRuby_Objects,reinterpret_cast<st_data_t>(const_cast<void*>(foxObj)),reinterpret_cast<st_data_t *>(&desc))!=0){ + FXTRACE((1,"FXRbUnregisterRubyObj(rubyObj=%d,foxObj=%p)\n",static_cast<int>(desc->obj),foxObj)); DATA_PTR(desc->obj)=0; FXFREE(&desc); st_delete(FXRuby_Objects,reinterpret_cast<st_data_t *>(const_cast<void**>(&foxObj)),reinterpret_cast<st_data_t *>(0)); -- GitLab