mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 15:20:32 +02:00
webidl: wasmjob: nicer callback code
This commit is contained in:
parent
becbd5411c
commit
7232e3ac44
@ -716,7 +716,7 @@ begin
|
|||||||
VarSection:=VarSection+' '+ArgName+': '+ArgTypeName+';'+sLineBreak;
|
VarSection:=VarSection+' '+ArgName+': '+ArgTypeName+';'+sLineBreak;
|
||||||
|
|
||||||
// get: ArgName:=H.GetX;
|
// get: ArgName:=H.GetX;
|
||||||
FetchArgs:=FetchArgs+' '+ArgName+':=H.'+GetFunc+';';
|
FetchArgs:=FetchArgs+' '+ArgName+':=H.'+GetFunc+';'+sLineBreak;
|
||||||
|
|
||||||
// pass: ArgName
|
// pass: ArgName
|
||||||
if Params<>'' then
|
if Params<>'' then
|
||||||
@ -729,7 +729,7 @@ begin
|
|||||||
|
|
||||||
Code:=Code+'begin'+sLineBreak;
|
Code:=Code+'begin'+sLineBreak;
|
||||||
if FetchArgs<>'' then
|
if FetchArgs<>'' then
|
||||||
Code:=Code+FetchArgs+sLineBreak;
|
Code:=Code+FetchArgs;
|
||||||
|
|
||||||
Call:=FuncName+'(aMethod)('+Params+')';
|
Call:=FuncName+'(aMethod)('+Params+')';
|
||||||
case ResolvedReturnTypeName of
|
case ResolvedReturnTypeName of
|
||||||
|
Loading…
Reference in New Issue
Block a user