diff options
author | Dan Gudmundsson <[email protected]> | 2012-10-30 11:31:22 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2013-01-09 11:41:40 +0100 |
commit | 9cffd30e76296fec83b22a2b3aa07bd3435cbe30 (patch) | |
tree | a890e1b27557854cf8c34759d737bf57a76c38e8 /lib/wx/api_gen/wx_gen_cpp.erl | |
parent | c6b6e6b67a7b9f8e0e25385c2272327d9a706348 (diff) | |
download | otp-9cffd30e76296fec83b22a2b3aa07bd3435cbe30.tar.gz otp-9cffd30e76296fec83b22a2b3aa07bd3435cbe30.tar.bz2 otp-9cffd30e76296fec83b22a2b3aa07bd3435cbe30.zip |
wx: Deprecate functions not available in wxWidgets-2.9
Prepare to remove functionality which is not available in coming
wxWidgets versions.
Diffstat (limited to 'lib/wx/api_gen/wx_gen_cpp.erl')
-rw-r--r-- | lib/wx/api_gen/wx_gen_cpp.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/wx/api_gen/wx_gen_cpp.erl b/lib/wx/api_gen/wx_gen_cpp.erl index ced9c965ff..04d3f9264c 100644 --- a/lib/wx/api_gen/wx_gen_cpp.erl +++ b/lib/wx/api_gen/wx_gen_cpp.erl @@ -124,8 +124,8 @@ gen_constructor(Class, _M=#method{params=Ps, opts=FOpts}) -> CallA = fun(#param{name=N}) -> N end, HaveMergedType = fun(#param{type={merged,_,_,_,_,_,_}}) -> true; (_) -> false end, ?WTC("gen_constructor"), - Endif = case lists:keysearch(ifdef, 1, FOpts) of - {value, {ifdef, IfDef}} -> + Endif = case lists:keysearch(deprecated, 1, FOpts) of + {value, {deprecated, IfDef}} -> w("#if ~s~n", [IfDef]), true; _ -> false @@ -304,8 +304,8 @@ gen_method(CName, M=#method{name=N,params=Ps0,type=T,method_type=MT,id=MethodId put(current_func, N), put(bin_count,-1), ?WTC("gen_method"), - Endif = case lists:keysearch(ifdef, 1, FOpts) of - {value, {ifdef, IfDef}} -> + Endif = case lists:keysearch(deprecated, 1, FOpts) of + {value, {deprecated, IfDef}} -> w("#if ~s~n", [IfDef]), true; _ -> false |