pike.git / src / interpreter.h

version» Context lines:

pike.git/src/interpreter.h:1292:       CASE(F_CAST); f_cast(); break;       CASE(F_SOFT_CAST);    /* Stack: type_string, value */   #ifdef PIKE_DEBUG    if (sp[-2].type != T_STRING) {    fatal("Argument 1 to soft_cast isn't a string!\n");    }   #endif /* PIKE_DEBUG */ -  /* FIXME: Should probably be some other flag */ -  if (d_flag) { +  if (runtime_options & RUNTIME_CHECK_TYPES) {    struct pike_string *sval_type = get_type_of_svalue(sp-1);    if (!pike_types_le(sval_type, sp[-2].u.string)) {    struct pike_string *t;    ONERROR tmp;       free_string(sval_type);       t = describe_type(sp[-2].u.string);    SET_ONERROR(tmp, do_free_string, t);    bad_arg_error("soft_cast", sp-1, 1, 1, t->str, sp-1,