Below you can find a sample Chet result with CreateDynamicImport(0) directive:
Delphi can not compile it because of the lack of the var keyword before function declarations.
type
MyEnum= (
enum0= 0,
enum1= 1,
enum2= 2);
PMyEnum = ^MyEnum;
// more types...
MyRecord= record
a: Double;
b: Double;
c: Double;
end;
// here should be var!
MyFunc1: function(...): MyResult; cdecl;
MyFunc2: function(...): MyResult; cdecl;
// more functions...
I need to use PostProcess / InsertLine to insert var after the last type declaration.
Yes, I'm aware of this. I have a build that resolves this issue. However, like I stated before, there are some corner cases, that I'm still working on before I can issue a PR.
Below you can find a sample Chet result with
CreateDynamicImport(0)
directive: Delphi can not compile it because of the lack of thevar
keyword before function declarations.I need to use
PostProcess / InsertLine
to insertvar
after the last type declaration.