mirror of https://github.com/xemu-project/xemu.git
26 lines
441 B
JSON
26 lines
441 B
JSON
# we require the base to be an existing struct
|
|
|
|
##
|
|
# @TestEnum:
|
|
##
|
|
{ 'enum': 'TestEnum',
|
|
'data': [ 'value1', 'value2' ] }
|
|
##
|
|
# @TestTypeA:
|
|
##
|
|
{ 'struct': 'TestTypeA',
|
|
'data': { 'string': 'str' } }
|
|
##
|
|
# @TestTypeB:
|
|
##
|
|
{ 'struct': 'TestTypeB',
|
|
'data': { 'integer': 'int' } }
|
|
##
|
|
# @TestUnion:
|
|
##
|
|
{ 'union': 'TestUnion',
|
|
'base': 'any',
|
|
'discriminator': 'enum1',
|
|
'data': { 'value1': 'TestTypeA',
|
|
'value2': 'TestTypeB' } }
|