Explorar o código

webidl: wasmjob: write forward interface definitions

mattias %!s(int64=3) %!d(string=hai) anos
pai
achega
6bc34710c8
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      packages/webidl/src/webidltowasmjob.pp

+ 4 - 0
packages/webidl/src/webidltowasmjob.pp

@@ -399,7 +399,11 @@ begin
   if D is TIDLDictionaryDefinition then
     AddLn(GetName(D)+' = '+JOB_JSValueTypeNames[jjvkDictionary]+';')
   else
+    begin
+    if (not D.IsPartial) and (D is TIDLInterfaceDefinition) then
+      AddLn(GetPasIntfName(D)+' = Interface;');
     Result:=inherited WriteForwardClassDef(D);
+    end;
 end;
 
 function TWebIDLToPasWasmJob.WriteFunctionDefinition(