* Namespaced Atom API

This commit is contained in:
Michaël Van Canneyt 2023-11-27 22:49:40 +01:00
parent c1bd8440e4
commit b760667787
4 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,3 @@
{$DEFINE FPC_DOTTEDUNITS}
unit Api.Atom;
{$include ../src/libatom.pp}

View File

@ -0,0 +1,3 @@
{$DEFINE FPC_DOTTEDUNITS}
unit Fcl.App.Atom;
{$include ../src/atomapp.pp}

View File

@ -10,15 +10,20 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
{$IFNDEF FPC_DOTTEDUNITS}
unit atomapp;
{$ENDIF}
{$mode objfpc}
interface
uses
{$IFDEF FPC_DOTTEDUNITS}
System.Classes, System.SysUtils, JSApi.JS, Api.Atom, Fcl.CustApp;
{$ELSE}
Classes, SysUtils, JS, libatom, custapp;
{$ENDIF}
Type
TAtomEnvironment = class (TJSObject)

View File

@ -10,8 +10,9 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
{$IFNDEF FPC_DOTTEDUNITS}
unit libatom;
{$ENDIF}
{$mode objfpc}
{$modeswitch externalclass}
@ -19,7 +20,11 @@ unit libatom;
interface
uses
{$IFDEF FPC_DOTTEDUNITS}
JSApi.JS, System.Types, BrowserApi.Web;
{$ELSE}
JS, types, web;
{$ENDIF}
Type
TAtomHandler = reference to procedure;