The R Project SVN R

Rev

Rev 88719 | Rev 89924 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 88719 Rev 89923
Line 2797... Line 2797...
2797
{
2797
{
2798
    R_MissingArgError_c(CHAR(PRINTNAME(symbol)), call, subclass);
2798
    R_MissingArgError_c(CHAR(PRINTNAME(symbol)), call, subclass);
2799
}
2799
}
2800
 
2800
 
2801
 
2801
 
-
 
2802
NORET attribute_hidden void R_FunctionNotFoundError(SEXP call, SEXP sym)
-
 
2803
{
-
 
2804
    if (TYPEOF(sym) != SYMSXP)
-
 
2805
	error(_("not a symbol"));
-
 
2806
    SEXP cond = R_makeErrorCondition(call, "functionNotFoundError", NULL, 1,
-
 
2807
				     _("could not find function \"%s\""),
-
 
2808
				     CHAR(PRINTNAME(sym)));
-
 
2809
    PROTECT(cond);
-
 
2810
    R_setConditionField(cond, 2, "name", sym);
-
 
2811
    R_signalErrorCondition(cond, call);
-
 
2812
    UNPROTECT(1); // not reached
-
 
2813
}
-
 
2814
 
2802
attribute_hidden /* for now */
2815
attribute_hidden /* for now */
2803
void R_setConditionField(SEXP cond, R_xlen_t idx, const char *name, SEXP val)
2816
void R_setConditionField(SEXP cond, R_xlen_t idx, const char *name, SEXP val)
2804
{
2817
{
2805
    PROTECT(cond);
2818
    PROTECT(cond);
2806
    PROTECT(val);
2819
    PROTECT(val);