From f61ef1384c69c2b9628fb5078e48a302617c4474 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Sat, 2 Mar 2024 13:32:37 +0100 Subject: [PATCH] add an EbmlCallbacksMaster variant of tEBML_INFO_CONTEXT --- ebml/EbmlMaster.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ebml/EbmlMaster.h b/ebml/EbmlMaster.h index 64efda24..18084341 100644 --- a/ebml/EbmlMaster.h +++ b/ebml/EbmlMaster.h @@ -156,6 +156,11 @@ static inline constexpr const EbmlSemanticContextMaster & tEBML_CONTEXT(const Eb return e->ContextMaster(); } +static inline constexpr const EbmlSemanticContextMaster & tEBML_INFO_CONTEXT(const EbmlCallbacksMaster & cb) +{ + return cb.GetContextMaster(); +} + ///< \todo add a restriction to only elements legal in the context template Type & GetChild(EbmlMaster & Master)