pike.git/
src/
error.c
Branch:
Tag:
Non-build tags
All tags
No tags
1999-03-23
1999-03-23 16:22:07 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
28af0c61424430160a5b19e5d24ff64a5cc417d5 (
12
lines) (+
11
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
bugfixes
Rev: src/block_alloc.h:1.6
Rev: src/error.c:1.29
Rev: src/errors.h:1.3
18:
#include "operators.h" #include "module_support.h"
-
RCSID("$Id: error.c,v 1.
28
1999/03/23
02
:
51
:
07
marcus
Exp $");
+
RCSID("$Id: error.c,v 1.
29
1999/03/23
16
:
22
:
06
hubbe
Exp $");
#undef ATTRIBUTE #define ATTRIBUTE(X)
441:
void math_error( char *func, struct svalue *base_sp, int args,
+
struct svalue *number,
char *desc, ...) ATTRIBUTE((noreturn,format (printf, 4, 5))) { INIT_ERROR(math);
-
+
if(number)
+
{
+
ERROR_COPY_SVALUE(bad_arg, number);
+
}else{
+
ERROR_STRUCT(bad_arg,o)->number.type=T_INT;
+
ERROR_STRUCT(bad_arg,o)->number.subtype=NUMBER_UNDEFINED;
+
ERROR_STRUCT(bad_arg,o)->number.u.integer=0;
+
}
ERROR_DONE(generic); }