aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen/wx_gen.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2017-08-16 16:42:58 +0200
committerDan Gudmundsson <[email protected]>2017-08-16 16:42:58 +0200
commite56fed2c88d3191b7944f26424e4c797380d4c8e (patch)
treed979ce003f76ce4c11adac8dfbf3899ab899d87a /lib/wx/api_gen/wx_gen.erl
parent2383da3b7b82ba9b1680accf4b7b884827b395ae (diff)
downloadotp-e56fed2c88d3191b7944f26424e4c797380d4c8e.tar.gz
otp-e56fed2c88d3191b7944f26424e4c797380d4c8e.tar.bz2
otp-e56fed2c88d3191b7944f26424e4c797380d4c8e.zip
Update so that doxygen 1.8.11 can generate code
Fix some configurations so that it works with new doxygen and with complete install outside of /usr/include/wx...
Diffstat (limited to 'lib/wx/api_gen/wx_gen.erl')
-rw-r--r--lib/wx/api_gen/wx_gen.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/wx/api_gen/wx_gen.erl b/lib/wx/api_gen/wx_gen.erl
index 6979a600f3..aadfe4b111 100644
--- a/lib/wx/api_gen/wx_gen.erl
+++ b/lib/wx/api_gen/wx_gen.erl
@@ -501,10 +501,11 @@ parse_member2(_, _,M0) ->
M0.
add_param(InParam, Opts, M0) ->
- Param0 = case InParam#param.name of
- undefined -> InParam#param{name="val"};
+ Param0 = case {InParam#param.name, InParam#param.type} of
+ {undefined, void} -> InParam#param{where=nowhere};
+ {undefined,_} -> InParam#param{name="val"};
_ -> InParam
- end,
+ end,
Param = case Param0#param.type of
#type{base={comp,_,_Comp}} -> Param0;
#type{base={class,_Class}} -> Param0;