From a2d9c1e0d6a419a7d476d5eb8a3e8397a5ab2c0e Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Thu, 8 Apr 2010 16:05:15 +0000 Subject: [PATCH] add EBML_CLASS_SEMCONTEXT() for a more generic way to describe a global context callback git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@88 a6f86f6d-0131-4f8e-9e7b-e335508773d5 --- ebml/EbmlElement.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ebml/EbmlElement.h b/ebml/EbmlElement.h index 3014bd1..29598c7 100644 --- a/ebml/EbmlElement.h +++ b/ebml/EbmlElement.h @@ -179,9 +179,10 @@ extern const EbmlSemanticContext Context_EbmlGlobal; static const EbmlCallbacks ClassInfos; \ -#define EBML_INFO(ref) ref::ClassInfo() -#define EBML_ID(ref) ref::ClassId() -#define EBML_CLASS_CONTEXT(ref) ref::ClassInfo().GetContext() +#define EBML_INFO(ref) ref::ClassInfo() +#define EBML_ID(ref) ref::ClassId() +#define EBML_CLASS_SEMCONTEXT(ref) Context_##ref +#define EBML_CLASS_CONTEXT(ref) ref::ClassInfo().GetContext() #define EBML_CONTEXT(e) (e)->Context() #define EBML_NAME(e) (e)->DebugName()