⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.pas

📁 从Delphi中调用lua
💻 PAS
字号:
unit Test; 

{$mode objfpc}{$H+}

// This is just a simple little test file for testing the Generator

interface

uses
  Classes, SysUtils; 

type
  TMyRecord = record
    v1, v2 : Variant;
  end;
  
  { TMyObject }
  TMyObject = class
  public
    procedure Test;
    function  DoIt(Val1, Val2 : integer) : ansistring;
  end;
  
  { TMyObjectSub }
  TMyObjectSub = class(TMyObject)
  private
    FSomeProp: Double;
    procedure SetSomeProp(const AValue: Double);
  public
    property SomeProp : Double read FSomeProp write SetSomeProp;
  end;

function Test2(Val1 : Integer; Val2 : String) : Double;
procedure ProcTest;

var
  v1, v2 : Variant;
  v3     : integer;

const
  c1 = 'Test constant value 1';
  c2 : AnsiString = 'Test constant value 2';

implementation

function Test2(Val1: Integer; Val2: String): Double;
begin

end;

procedure ProcTest;
begin

end;

{ TMyObject }

procedure TMyObject.Test;
begin

end;

function TMyObject.DoIt(Val1, Val2: integer): ansistring;
begin

end;

{ TMyObjectSub }

procedure TMyObjectSub.SetSomeProp(const AValue: Double);
begin
  if FSomeProp=AValue then exit;
  FSomeProp:=AValue;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -