Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Context dependent #include files

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
metalim Posted - Jan 31 2008 : 06:35:40 AM
Build 1626
Example: TightVNC http://www.tightvnc.com/
Try to find definition of tightEncode8 with VA.
However, Right-Click / "Go to definition" works fine.

-----------[File: tightvnc\\rfb\\TightEncoder.cxx]----------
...
#define BPP 8
#include <rfb/tightEncode.h>
#undef BPP
#define BPP 16
#include <rfb/tightEncode.h>
#undef BPP
#define BPP 32
#include <rfb/tightEncode.h>
#undef BPP
...
switch (writer->bpp()) {
case 8:
// POINT TO NEXT FUNCTION AND TRY TO FIND IT'S DEFINITION
tightEncode8(r, &mos, zos, imageBuf, cp, ig); break;
case 16:
tightEncode16(r, &mos, zos, imageBuf, cp, ig); break;
case 32:
tightEncode32(r, &mos, zos, imageBuf, cp, ig); break;
}

-----------[File: tightvnc\\rfb\\tightEncode.h]----------
...
#define TIGHT_ENCODE CONCAT2E(tightEncode,BPP)
...
void TIGHT_ENCODE (const Rect& r, rdr::OutStream *os,
rdr::ZlibOutStream zos[4], void* buf, ConnParams* cp
)
...
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 31 2008 : 08:50:10 AM
VA is designed to be active inside all conditional blocks, to help you write code inside of them. Also VA often does not know which block is active.

I am puzzled by your example, the same header file is included regardless of the pre-processor declarations.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000