Branch: Tag:

2015-12-13

2015-12-13 18:54:41 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Thread: Use callablep() instead of f_callablep().

1994:    if (args < 1) {    SIMPLE_TOO_FEW_ARGS_ERROR("create", 1);    } -  push_svalue(Pike_sp - args); -  f_callablep(1); -  if (UNSAFE_IS_ZERO(Pike_sp - 1)) { +  if (!callablep(Pike_sp - args)) {    SIMPLE_BAD_ARG_ERROR("create", 1, "function");    } -  pop_stack(); +        if (thread_state->status != THREAD_NOT_STARTED) {    Pike_error("Threads can not be restarted (status:%d).\n",