aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen/gl_gen_erl.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2010-03-02 09:52:31 +0100
committerBjörn Gustavsson <[email protected]>2010-03-12 06:41:31 +0100
commit556b7f0aea69c7a82a2d0b4c844d07732d005288 (patch)
tree9634c0a57894a758c11cd33ea12adba202dc4163 /lib/wx/api_gen/gl_gen_erl.erl
parente68047c805927face88ef43fd6fdbc2a631b9d0a (diff)
downloadotp-556b7f0aea69c7a82a2d0b4c844d07732d005288.tar.gz
otp-556b7f0aea69c7a82a2d0b4c844d07732d005288.tar.bz2
otp-556b7f0aea69c7a82a2d0b4c844d07732d005288.zip
Fixed code generation from newer doxygen versions.
Also changed the wx.hrl output order. Tried to get it to work with both doxygen-1.4.6 and doxygen-1.6.3. Minor problems still exists with doxygen-1.6.3.
Diffstat (limited to 'lib/wx/api_gen/gl_gen_erl.erl')
-rw-r--r--lib/wx/api_gen/gl_gen_erl.erl11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/wx/api_gen/gl_gen_erl.erl b/lib/wx/api_gen/gl_gen_erl.erl
index 07e4d6f783..ce35484561 100644
--- a/lib/wx/api_gen/gl_gen_erl.erl
+++ b/lib/wx/api_gen/gl_gen_erl.erl
@@ -178,9 +178,16 @@ gen_funcs(F) ->
erase(current_func),
w(".~n~n",[]).
-gen_export([F|_]) when is_list(F) ->
+gen_export(F) ->
+ try gen_export_1(F)
+ catch E:R ->
+ io:format("Crash ~p:~p in ~p ~n",[E,R, erlang:get_stacktrace()]),
+ io:format("Func = ~p~n ~p", [F, get(F)])
+ end.
+
+gen_export_1([F|_]) when is_list(F) ->
gen_export2(get(F));
-gen_export(F) when is_list(F) ->
+gen_export_1(F) when is_list(F) ->
gen_export2(get(F)).
gen_export2(#func{name=Name,alt={vector,VecPos,Vec}}) ->