mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 15:50:30 +02:00
* Dotted filenames for package lua
This commit is contained in:
parent
e1ca68479f
commit
ac62ae5ce5
3
packages/lua/namespaced/Api.Lua.Aux.pas
Normal file
3
packages/lua/namespaced/Api.Lua.Aux.pas
Normal file
@ -0,0 +1,3 @@
|
||||
unit Api.Lua.Aux;
|
||||
{$DEFINE FPC_DOTTEDUNITS}
|
||||
{$i lauxlib.pas}
|
3
packages/lua/namespaced/Api.Lua.Std.pas
Normal file
3
packages/lua/namespaced/Api.Lua.Std.pas
Normal file
@ -0,0 +1,3 @@
|
||||
unit Api.Lua.Std;
|
||||
{$DEFINE FPC_DOTTEDUNITS}
|
||||
{$i lualib.pas}
|
4
packages/lua/namespaces.lst
Normal file
4
packages/lua/namespaces.lst
Normal file
@ -0,0 +1,4 @@
|
||||
src/lauxlib.pas=namespaced/Api.Lua.Aux.pas
|
||||
{s*:src/}=namespaced/
|
||||
{i+:src/}
|
||||
src/lualib.pas=namespaced/Api.Lua.Std.pas
|
@ -24,12 +24,19 @@
|
||||
|
||||
{$IFDEF FPC}{$MODE OBJFPC}{$H+}{$ENDIF}
|
||||
|
||||
{$IFNDEF FPC_DOTTEDUNITS}
|
||||
unit lauxlib;
|
||||
{$ENDIF FPC_DOTTEDUNITS}
|
||||
|
||||
interface
|
||||
|
||||
{$IFDEF FPC_DOTTEDUNITS}
|
||||
uses
|
||||
Lua;
|
||||
{$ELSE FPC_DOTTEDUNITS}
|
||||
uses
|
||||
Lua;
|
||||
{$ENDIF FPC_DOTTEDUNITS}
|
||||
|
||||
// functions added for Pascal
|
||||
procedure lua_pushstring(L: Plua_State; const s: ansistring);
|
||||
|
@ -22,12 +22,19 @@
|
||||
|
||||
{$IFDEF FPC}{$MODE OBJFPC}{$H+}{$ENDIF}
|
||||
|
||||
{$IFNDEF FPC_DOTTEDUNITS}
|
||||
unit lualib;
|
||||
{$ENDIF FPC_DOTTEDUNITS}
|
||||
|
||||
interface
|
||||
|
||||
{$IFDEF FPC_DOTTEDUNITS}
|
||||
uses
|
||||
Lua;
|
||||
{$ELSE FPC_DOTTEDUNITS}
|
||||
uses
|
||||
Lua;
|
||||
{$ENDIF FPC_DOTTEDUNITS}
|
||||
|
||||
const
|
||||
LUA_COLIBNAME = 'coroutine';
|
||||
|
Loading…
Reference in New Issue
Block a user