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

low_make_callable() now uses the new function call checker...

low_make_callable() now uses the new function call checker (check_splice_call()/new_get_return_type()) rather than the old (check_call()) in the debug code.

Rev: src/constants.c:1.61
parent 340c15d8
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
|| This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information.
|| $Id: constants.c,v 1.60 2008/05/11 14:55:53 mast Exp $
|| $Id: constants.c,v 1.61 2008/06/18 21:23:12 grubba Exp $
*/
#include "global.h"
......@@ -111,7 +111,14 @@ PMOD_EXPORT struct callable *low_make_callable(c_fun fun,
f->internal_flags = global_callable_flags;
#ifdef PIKE_DEBUG
{
struct pike_type *z = check_call(function_type_string, type, 0);
struct pike_type *z = NULL;
add_ref(type);
type = check_splice_call(name, type, 1, mixed_type_string, NULL,
CALL_INHIBIT_WARNINGS);
if (type) {
z = new_get_return_type(type, CALL_INHIBIT_WARNINGS);
free_type(type);
}
f->may_return_void = (z == void_type_string);
if(!z) Pike_fatal("Function has no valid return type.\n");
free_type(z);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment