summaryrefslogtreecommitdiff
path: root/lib/wx/api_gen/gl_gen_erl.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wx/api_gen/gl_gen_erl.erl')
-rw-r--r--lib/wx/api_gen/gl_gen_erl.erl12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/wx/api_gen/gl_gen_erl.erl b/lib/wx/api_gen/gl_gen_erl.erl
index b2c3ae2112..06fc6c9e58 100644
--- a/lib/wx/api_gen/gl_gen_erl.erl
+++ b/lib/wx/api_gen/gl_gen_erl.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2008-2022. All Rights Reserved.
+%% Copyright Ericsson AB 2008-2023. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -88,8 +88,8 @@ gl_api(Fs, _GluNifs) ->
w("-on_load(init_nif/0).~n",[]),
w("~n-export([~s]).~n~n", [args(fun(EF) -> EF end, ",", ExportList, 60)]),
- w("-export([get_interface/0, rec/1, lookup_func/0]).\n",[]),
- w("-nifs([lookup_func/0]).\n",[]),
+ w("-export([get_interface/0, rec/1, lookup_func/1]).\n",[]),
+ w("-nifs([lookup_func_nif/1]).\n",[]),
w("-define(nif_stub,nif_stub_error(?LINE)).~n", []),
w("%% @hidden~n", []),
w("nif_stub_error(Line) ->~n"
@@ -118,7 +118,9 @@ gl_api(Fs, _GluNifs) ->
w(" error_logger:error_report([{gl, error}, {message, lists:flatten(Err)}]),~n", []),
w(" rec(Op)~n", []),
w(" end.~n~n", []),
- w("lookup_func() -> ?nif_stub.\n\n",[]),
+ w("lookup_func(functions) -> lookup_func_nif(1);\n",[]),
+ w("lookup_func(function_names) -> lookup_func_nif(2).\n\n",[]),
+ w("lookup_func_nif(_Func) -> ?nif_stub.\n\n",[]),
w("~n", []),
w("~n", []),
@@ -380,6 +382,8 @@ spec_arg_type2(T=#type{single={list, _Max}}) ->
"[" ++ spec_arg_type3(T) ++ "]";
spec_arg_type2(T=#type{single={list,_,_}}) ->
"[" ++ spec_arg_type3(T) ++ "]";
+spec_arg_type2(T=#type{single={list,_,_,_}}) ->
+ "[" ++ spec_arg_type3(T) ++ "]";
spec_arg_type2(T=#type{single={tuple_list,Sz}}) ->
"[{" ++ args(fun spec_arg_type3/1, ",", lists:duplicate(Sz,T)) ++ "}]".