Signal an error if the argument to SET-MACRO-CHARACTER is not a function designator

This commit is contained in:
Juan Jose Garcia Ripoll 2008-12-06 11:01:02 +01:00
parent cd24fc30d5
commit 4ddb8b02f1

View file

@ -1843,6 +1843,10 @@ ecl_invalid_character_p(int c)
entry->syntax_type = cat_non_terminating;
else
entry->syntax_type = cat_terminating;
while (Null(cl_functionp(fnc))) {
fnc = ecl_type_error(@'set-macro-character',"new_function",
fnc, @'function');
}
entry->macro = fnc;
@(return Ct)
@)