Hello,
when I use a var-section for global unit variables, pas2dox comments it and also the complete following code.
Example:
unit singletondemo;
interface
function Singleton: TSingleton;
implementation
var
Singletonvar: TSingleton=nil;
{* Create a singleton }
function Singleton: TSingleton;
begin
if not Assigned(Singletonvar) then
Singletonvar:=TSingleton.Create;
Result:=Singletonvar;
end;
It generates
...
/*
var
...
#endif /* DOXYGEN_SKIP */
};
So there is no way to put function- and method-dokumentation into the implementation.
Is there any workaround?
Bye
Norman
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
when I use a var-section for global unit variables, pas2dox comments it and also the complete following code.
Example:
unit singletondemo;
interface
function Singleton: TSingleton;
implementation
var
Singletonvar: TSingleton=nil;
{* Create a singleton }
function Singleton: TSingleton;
begin
if not Assigned(Singletonvar) then
Singletonvar:=TSingleton.Create;
Result:=Singletonvar;
end;
It generates
...
/*
var
...
#endif /* DOXYGEN_SKIP */
};
So there is no way to put function- and method-dokumentation into the implementation.
Is there any workaround?
Bye
Norman
please check your sourceforge email. I have sent on a new version of pas2dox, along with pas2dox.l source code.
I am unable to checkin new version to cvs, as I am blocked from doing so at this location. I will do this later.
Ta,
Darren.