V_setBoundaryCheckWarn
FunctionSwitch warnings about non-OptiVec vectors / matrices on and off (during checks for dimension mismatches)
Syntax C/C++#include <Veclib.h>
void V_setBoundaryCheckWarn( int WarnLevel );
Pascal/Delphiuses Veclib;
procedure V_setBoundaryCheckWarn( WarnLevel: IntBool );
DescriptionThe dimension-checking debug libraries (VCF4WD.LIB for Borland / CodeGear C++, OVVC4D.LIB for Visual C++, units in LIB4D for Delphi) will normally issue a warning, if any array not generated by V?_vector or M?_matrix is encountered. While using non-OptiVec vectors is perfectly legal, it might also be dangerous, as possible dimension-mismatches cannot detected. If you have to use static arrays (or arrays dynamic allocated with malloc or the Windows API memory functions) and do not want to see the warning messages, you may call
V_setBoundaryCheckWarn( 0 );  (C/C++) or
V_setBoundaryCheckWarn( FALSE );  (Pascal / Delphi).
This will switch off only the described warning messages. It does not affect the error messages. For details about the error and warning messages, see V_checkBoundaries.
Error handlingnone
Return valuenone
See alsoV_checkBoundaries

VectorLib Table of Contents  OptiVec home