Add Platform Control
This commit is contained in:
@@ -3,12 +3,13 @@ unit Fasm4Delphi platform;
|
|||||||
{Delphi Translation&Tests:Artyom Gavrilov,Vlad Untkin.
|
{Delphi Translation&Tests:Artyom Gavrilov,Vlad Untkin.
|
||||||
Donate:https://money.yandex.ru/to/410014959153552}
|
Donate:https://money.yandex.ru/to/410014959153552}
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
|
||||||
Windows;
|
|
||||||
|
|
||||||
//{$Define FasmStaticLink}
|
//{$Define FasmStaticLink}
|
||||||
|
{$IFDEF WIN32}
|
||||||
|
|
||||||
|
uses
|
||||||
|
Windows;
|
||||||
|
|
||||||
type
|
type
|
||||||
TFasmVersion=packed record
|
TFasmVersion=packed record
|
||||||
@@ -113,9 +114,11 @@ var
|
|||||||
procedure LoadFASM(Name:string=FASMDLLName);
|
procedure LoadFASM(Name:string=FASMDLLName);
|
||||||
procedure FreeFASM;
|
procedure FreeFASM;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
{$IFDEF WIN32}
|
||||||
{$IFNDEF FasmStaticLink}
|
{$IFNDEF FasmStaticLink}
|
||||||
var
|
var
|
||||||
&Library:THandle=0;
|
&Library:THandle=0;
|
||||||
@@ -145,7 +148,8 @@ fasm_GetVersion:=nil;
|
|||||||
fasm_Assemble:=nil;
|
fasm_Assemble:=nil;
|
||||||
fasm_AssembleFile:=nil;
|
fasm_AssembleFile:=nil;
|
||||||
&Library:=0;
|
&Library:=0;
|
||||||
end;
|
end;
|
||||||
|
{$ENDIF}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
Reference in New Issue
Block a user