X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fexprseq.h;h=59f6821f2a1b6f0c93521774e9b3956f88c7c67a;hp=16d99bd38847aafbdc56ca1cdcd234a7a52747d5;hb=8bcccf834ad41e94a1a4f3a0304c2945b228b4f4;hpb=a8507b8af1c08d9b27d98d57f95c7ca1a8671e27 diff --git a/ginac/exprseq.h b/ginac/exprseq.h index 16d99bd3..59f6821f 100644 --- a/ginac/exprseq.h +++ b/ginac/exprseq.h @@ -1,6 +1,8 @@ /** @file exprseq.h * - * Definition of GiNaC's exprseq. + * Definition of GiNaC's exprseq. */ + +/* * This file was generated automatically by container.pl. * Please do not modify it directly, edit the perl script instead! * container.pl options: $CONTAINER=exprseq @@ -32,7 +34,10 @@ #define __GINAC_EXPRSEQ_H__ #include -#include +#include +#include + +namespace GiNaC { typedef vector exvector; @@ -123,9 +128,13 @@ protected: extern const exprseq some_exprseq; extern type_info const & typeid_exprseq; -// macros +// utility functions +inline const exprseq &ex_to_exprseq(const ex &e) +{ + return static_cast(*e.bp); +} -#define ex_to_exprseq(X) (static_cast(*(X).bp)) +} // namespace GiNaC #endif // ndef __GINAC_EXPRSEQ_H__