Permalink
Browse files

Add trace output in FXRbUnregisterRubyObj

  • Loading branch information...
1 parent 09fda44 commit 1fc7a33f7bfeb04e92d190149fded09ad78f23e1 @larskanis committed Mar 9, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 ext/fox16/FXRuby.cpp
View
1 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));

0 comments on commit 1fc7a33

Please sign in to comment.