On Sat, 7 Jun 2003, Russell Whitaker wrote:
On Sat, 7 Jun 2003, Mirsad Todorovac wrote:
I apologize for replying to my own email, but is there a way to do this with GPC preprocessor, or is it on list of planned features?
{$if Low (Char) < 0} {$error "this won't work: negative Char used as index} {$endif}
Perhaps I'm wrong, but I thought by definition a Char cannot be negative.
OK, then the second one:
{$if BitSizeOf (LongestInt) > High (TString)} {$error "this won't work: on this platform LongestInt it too huuge ..."} {$endif}
Obviously, even now when I'm looking better, preprocessor may not know about SizeOf(), BitSizeOf(), High() and Low() of a user-defined type :-/ ?!?
Mirsad