Author Topic: dynamic surround issue  (Read 2584 times)

hs2

  • Senior Community Member
  • Posts: 2755
  • Hero Points: 291
dynamic surround issue
« on: January 31, 2008, 04:42:27 pm »

before:
Code: [Select]
   PRINTFL( ... );
   
   #ifdef DEBUG
   a = b;

entered while statement -> dyn. surround gets activated:
Code: [Select]
   while ( expr )
   {
   }
   PRINTFL( ... );
   
   #ifdef DEBUG
   a = b;

1 x <cursor down> to include just the PRINTFL line includes all lines down to the a = b; statement
Code: [Select]
   while ( expr )
   {
      PRINTFL( ... );
   
      #ifdef DEBUG
      a = b;
   }

PRINTFL is a macro (which is tagged properly):
Code: [Select]
#define  PRINTFL(lvl, fmt, args...)       { if ( TraceLevel >= ... }
Seems that dyn. surround doesn't recognize macros as statements. Is this supported / supposed to work ?

HS2