From 9ced122b2fb3c6494fa06192d486b99a244951c7 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Wed, 7 Apr 2010 16:12:16 +0000 Subject: [PATCH] new macro to define the old EbmlSemanticContext if it's not done elsewhere + add some missing SEMANTIC start/end git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@86 a6f86f6d-0131-4f8e-9e7b-e335508773d5 --- ebml/EbmlElement.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ebml/EbmlElement.h b/ebml/EbmlElement.h index 4ded979..3014bd1 100644 --- a/ebml/EbmlElement.h +++ b/ebml/EbmlElement.h @@ -146,9 +146,10 @@ extern const EbmlSemanticContext Context_EbmlGlobal; #define DEFINE_EBML_UINTEGER_DEF(x,id,idl,parent,name,val) DEFINE_xxx_UINTEGER_DEF(x,id,idl,parent,name,*GetEbmlGlobal_Context,val) #define DEFINE_EBML_STRING_DEF(x,id,idl,parent,name,val) DEFINE_xxx_STRING_DEF(x,id,idl,parent,name,*GetEbmlGlobal_Context,val) -#define DEFINE_START_SEMANTIC(x) static const EbmlSemantic ContextList_##x[] = { +#define DEFINE_SEMANTIC_CONTEXT(x) +#define DEFINE_START_SEMANTIC(x) static const EbmlSemantic ContextList_##x[] = { +#define DEFINE_END_SEMANTIC(x) }; #define DEFINE_SEMANTIC_ITEM(m,u,c) EbmlSemantic(m, u, EBML_INFO(c)), -#define DEFINE_END_SEMANTIC(x) }; #define DECLARE_EBML_MASTER(x) class EBML_DLL_API x : public EbmlMaster { \ public: \