From a9b901dcd0aa4b21a0fefdc34539f3b4b60b03e1 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Thu, 1 Nov 2001 17:32:37 +0000 Subject: [PATCH] * Remove obsolete macros. --- ginac/function.pl | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/ginac/function.pl b/ginac/function.pl index 962b17ef..47cc5492 100755 --- a/ginac/function.pl +++ b/ginac/function.pl @@ -200,28 +200,6 @@ $declare_function_macro const unsigned function_index_##NAME= \\ GiNaC::function::register_new(GiNaC::function_options(#NAME).OPT); -// The TYPECHECK-macros were used inside the _evalf() functions. They are -// considered obsolete now: (FIXME: remove them) - -#define BEGIN_TYPECHECK \\ -bool automatic_typecheck=true; - -#define TYPECHECK(VAR,TYPE) \\ -if (!is_exactly_a(VAR)) { \\ - automatic_typecheck=false; \\ -} else - -#define TYPECHECK_INTEGER(VAR) \\ -if (!(VAR).info(GiNaC::info_flags::integer)) { \\ - automatic_typecheck=false; \\ -} else - -#define END_TYPECHECK(RV) \\ -{} \\ -if (!automatic_typecheck) { \\ - return RV.hold(); \\ -} - namespace GiNaC { class function; -- 2.45.0