Browse Source

Added debug info for extern function pointers.

Mark Sibly 7 years ago
parent
commit
e2c095f5e0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      modules/monkey/native/bbdebug.h

+ 3 - 0
modules/monkey/native/bbdebug.h

@@ -37,6 +37,9 @@ inline bbString bbDBValue( bbFloat *p ){ return bbString(*p); }
 inline bbString bbDBValue( bbDouble *p ){ return bbString(*p); }
 extern bbString bbDBValue( bbString *p );
 
+template<class R,class...A> bbString bbDBType( R(*)(A...) ){ return "Extern?(?)"; }
+template<class R,class...A> bbString bbDBValue( R(*)(A...) ){ return "?"; }
+
 template<class T> bbString bbDBType(){
 	return bbDBType( (T*)0 );
 }