mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-21 08:09:22 +02:00
* assert that any exported promising function is not synthetic
This commit is contained in:
parent
aa94e9cd21
commit
be4fd4c012
@ -252,6 +252,8 @@ begin
|
||||
pd:=tcpuprocdef(tprocsym(hp.sym).ProcdefList[0]);
|
||||
if eo_promising_first in hp.options then
|
||||
begin
|
||||
if (pd.synthetickind<>tsk_none) and (pd.synthetickind<>tsk_wasm_promising) then
|
||||
internalerror(2023061301);
|
||||
pd.synthetickind:=tsk_wasm_promising;
|
||||
pd.promising_export_name:=hp.name^;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user