You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-22 22:17:48 +02:00
Added support for Lazarus/FPC (windows 32bit)
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
// For more information about CEF4Delphi visit :
|
||||
// https://www.briskbard.com/index.php?lang=en&pageid=cef
|
||||
//
|
||||
// Copyright � 2018 Salvador D�az Fau. All rights reserved.
|
||||
// Copyright � 2018 Salvador Diaz Fau. All rights reserved.
|
||||
//
|
||||
// ************************************************************************
|
||||
// ************ vvvv Original license and comments below vvvv *************
|
||||
@ -37,6 +37,10 @@
|
||||
|
||||
unit uCEFV8Exception;
|
||||
|
||||
{$IFDEF FPC}
|
||||
{$MODE OBJFPC}{$H+}
|
||||
{$ENDIF}
|
||||
|
||||
{$IFNDEF CPUX64}
|
||||
{$ALIGN ON}
|
||||
{$MINENUMSIZE 4}
|
||||
@ -73,42 +77,42 @@ uses
|
||||
|
||||
function TCefV8ExceptionRef.GetEndColumn: Integer;
|
||||
begin
|
||||
Result := PCefV8Exception(FData)^.get_end_column(FData);
|
||||
Result := PCefV8Exception(FData)^.get_end_column(PCefV8Exception(FData));
|
||||
end;
|
||||
|
||||
function TCefV8ExceptionRef.GetEndPosition: Integer;
|
||||
begin
|
||||
Result := PCefV8Exception(FData)^.get_end_position(FData);
|
||||
Result := PCefV8Exception(FData)^.get_end_position(PCefV8Exception(FData));
|
||||
end;
|
||||
|
||||
function TCefV8ExceptionRef.GetLineNumber: Integer;
|
||||
begin
|
||||
Result := PCefV8Exception(FData)^.get_line_number(FData);
|
||||
Result := PCefV8Exception(FData)^.get_line_number(PCefV8Exception(FData));
|
||||
end;
|
||||
|
||||
function TCefV8ExceptionRef.GetMessage: ustring;
|
||||
begin
|
||||
Result := CefStringFreeAndGet(PCefV8Exception(FData)^.get_message(FData));
|
||||
Result := CefStringFreeAndGet(PCefV8Exception(FData)^.get_message(PCefV8Exception(FData)));
|
||||
end;
|
||||
|
||||
function TCefV8ExceptionRef.GetScriptResourceName: ustring;
|
||||
begin
|
||||
Result := CefStringFreeAndGet(PCefV8Exception(FData)^.get_script_resource_name(FData));
|
||||
Result := CefStringFreeAndGet(PCefV8Exception(FData)^.get_script_resource_name(PCefV8Exception(FData)));
|
||||
end;
|
||||
|
||||
function TCefV8ExceptionRef.GetSourceLine: ustring;
|
||||
begin
|
||||
Result := CefStringFreeAndGet(PCefV8Exception(FData)^.get_source_line(FData));
|
||||
Result := CefStringFreeAndGet(PCefV8Exception(FData)^.get_source_line(PCefV8Exception(FData)));
|
||||
end;
|
||||
|
||||
function TCefV8ExceptionRef.GetStartColumn: Integer;
|
||||
begin
|
||||
Result := PCefV8Exception(FData)^.get_start_column(FData);
|
||||
Result := PCefV8Exception(FData)^.get_start_column(PCefV8Exception(FData));
|
||||
end;
|
||||
|
||||
function TCefV8ExceptionRef.GetStartPosition: Integer;
|
||||
begin
|
||||
Result := PCefV8Exception(FData)^.get_start_position(FData);
|
||||
Result := PCefV8Exception(FData)^.get_start_position(PCefV8Exception(FData));
|
||||
end;
|
||||
|
||||
class function TCefV8ExceptionRef.UnWrap(data: Pointer): ICefV8Exception;
|
||||
|
Reference in New Issue
Block a user