get_discriminator


Description:

public ConstantInfo get_discriminator (int n)

Obtain discriminator value assigned for n-th union field, i.e. n-th union field is the active one if discriminator contains this constant.

Parameters:

n

a union field index

info

a UnionInfo

Returns:

the ConstantInfo, free it with g_base_info_unref when done.




2022 vala-language.org