#block

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
Directives
   #include
   #list
   #loadLibrary
   #loadScript
   #logFile
   #if / #else / #endif
   #message
   #error
   #block
System library
String library
Math library
Regular expression lib.
File library
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL links
  

Names a code block in order to trace it. (Place this directive at the begin of the block):

#loadLibrary 'ZcSysLib'
 
main()
{
   sysTrace(sysTraceBlks+sysTraceMsgs); // turn on block+msg tracing
   if (sysIsWindows) {
      #block 'win branch'
      trace 'windows related code here';
   } else {
      #block 'others'
      trace 'other opsys related code here';
   }
}

Running on windows will show:

+win branch
 >windows related code here
-win branch
  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>