libebml: add a macro to define signed integer elements that have a default value
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@722 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
parent
a828485b74
commit
c064df6936
@ -116,6 +116,12 @@ extern const EbmlSemanticContext Context_EbmlGlobal;
|
||||
const EbmlCallbacks x::ClassInfos(x::Create, Id_##x, name, Context_##x); \
|
||||
x::x() :EbmlUInteger(defval) {}
|
||||
|
||||
#define DEFINE_xxx_SINTEGER_DEF(x,id,idl,parent,name,global,defval) \
|
||||
const EbmlId Id_##x (id, idl); \
|
||||
const EbmlSemanticContext Context_##x = EbmlSemanticContext(0, NULL, &Context_##parent, global, &EBML_INFO(x)); \
|
||||
const EbmlCallbacks x::ClassInfos(x::Create, Id_##x, name, Context_##x); \
|
||||
x::x() :EbmlSInteger(defval) {}
|
||||
|
||||
#define DEFINE_xxx_STRING_DEF(x,id,idl,parent,name,global,defval) \
|
||||
const EbmlId Id_##x (id, idl); \
|
||||
const EbmlSemanticContext Context_##x = EbmlSemanticContext(0, NULL, &Context_##parent, global, &EBML_INFO(x)); \
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
LIB ebml
|
||||
{
|
||||
PROJECT_VERSION 1.2.0
|
||||
PROJECT_VERSION 1.2.1
|
||||
|
||||
INCLUDE .
|
||||
EXPINCLUDE .
|
||||
|
Loading…
x
Reference in New Issue
Block a user