Skip to content
Snippets Groups Projects
Commit 869a280a authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Now uses new_error() in some places.

Rev: src/module_support.c:1.10
parent d0a7acc8
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
#include "pike_types.h"
#include "error.h"
RCSID("$Id: module_support.c,v 1.9 1998/03/28 15:10:10 grubba Exp $");
RCSID("$Id: module_support.c,v 1.10 1998/04/10 23:29:59 grubba Exp $");
/* Checks that args_to_check arguments are OK.
* Returns 1 if everything worked ok, zero otherwise.
......@@ -85,9 +85,9 @@ void check_all_args(const char *fnname, int args, ... )
{
case ERR_NONE: return;
case ERR_TOO_FEW:
error("Too few arguments to %s()\n",fnname);
new_error(fnname, "Too few arguments to %s()\n", sp, args, NULL, 0);
case ERR_TOO_MANY:
error("Too many argumens to %s()\n",fnname);
new_error(fnname, "Too many arguments to %s()\n", sp, args, NULL, 0);
case ERR_BAD_ARG:
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment