mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 01:48:03 +02:00
codetools: h2pas: convert enum
git-svn-id: trunk@31306 -
This commit is contained in:
parent
4ba4710664
commit
63e9ed66b0
@ -168,12 +168,18 @@ var
|
||||
begin
|
||||
UsesCTypes:='uses ctypes;'+LineEnding;
|
||||
EmpytImplementation:=LineEnding+'implementation'+LineEnding+'end.';
|
||||
(*Test('convert anonymous enum{ENUM1};',
|
||||
Test('convert anonymous enum{ENUM1};',
|
||||
'enum{ENUM1};',
|
||||
UsesCTypes+'type enumENUM1 = (ENUM1);'+EmpytImplementation);*)
|
||||
UsesCTypes+'type enumENUM1 = (ENUM1);'+EmpytImplementation);
|
||||
Test('convert one named enum color{red};',
|
||||
'enum color{red};',
|
||||
UsesCTypes+'type enumENUM1 = (ENUM1);'+EmpytImplementation);
|
||||
UsesCTypes+'type color = (red);'+EmpytImplementation);
|
||||
Test('convert named enum with id: color{red=1};',
|
||||
'enum color{red=1};',
|
||||
UsesCTypes+'type color = (red=1);'+EmpytImplementation);
|
||||
Test('convert multi enums: color{red,green,blue};',
|
||||
'enum color{red,green,blue};',
|
||||
UsesCTypes+'type color = (red,green,blue);'+EmpytImplementation);
|
||||
end;
|
||||
|
||||
initialization
|
||||
|
Loading…
Reference in New Issue
Block a user