diff options
author | Lukas Larsson <[email protected]> | 2011-07-21 11:11:47 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-08-01 17:29:46 +0200 |
commit | e09729b33b2d4967686239c313e6020579032851 (patch) | |
tree | c7ace44abab19ce729c194d0f6533c19f433e579 /lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl | |
parent | d13531f6efb62f69bd9002efeca32f0f9f6fc4e3 (diff) | |
download | otp-e09729b33b2d4967686239c313e6020579032851.tar.gz otp-e09729b33b2d4967686239c313e6020579032851.tar.bz2 otp-e09729b33b2d4967686239c313e6020579032851.zip |
Update code genaration to call nif/erlang depending on what is configured
Diffstat (limited to 'lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl')
-rw-r--r-- | lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl b/lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl index e16873c717..243ff234a7 100644 --- a/lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl +++ b/lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl @@ -877,13 +877,13 @@ gen_dec_choice(Erules,TopType, _ChTag, CompList, Ext) -> emit([indent(9),"exit({error,{asn1,{invalid_choice_tag,", {curr,else},"}}})",nl]); _ -> - emit([indent(9),"{asn1_ExtAlt, ?RT_BER:encode(",{curr,else},")}",nl]) + emit([indent(9),"{asn1_ExtAlt, ?RT_BER:encode(",{curr,else}, + asn1ct_gen:nif_parameter(),")}",nl]) end, emit([indent(3),"end",nl]), asn1ct_name:new(tag), asn1ct_name:new(else). - gen_dec_choice_cases(_Erules,_TopType, []) -> ok; gen_dec_choice_cases(Erules,TopType, [H|T]) -> |