Ralf Angeli <[EMAIL PROTECTED]> writes:
> + left = w32_get_arg (Qnil, Qleft, "left", "Left", RES_TYPE_NUMBER);
> + if (!EQ (left, Qunbound))
> + CHECK_NUMBER (left);
> One gripe I have with it is that the CHECK_NUMBER macro does not seem
> to work. If I use a string for the `top' or `left' property no error
> is thrown. Does anybody know why?
You pass RES_TYPE_NUMBER to w32_get_arg, which is
evaluated like this:
case RES_TYPE_NUMBER:
return make_number (atoi (SDATA (tem)));
so if the value is not a number, atoi returns zero.
--
Kim F. Storm <[EMAIL PROTECTED]> http://www.cua.dk
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug