mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
ADD: Lua - SysUtils.PathDelim constant
This commit is contained in:
parent
4643ceb00f
commit
b77a0ebbb8
1 changed files with 7 additions and 0 deletions
|
|
@ -391,6 +391,12 @@ begin
|
|||
lua_setfield(L, -2, n);
|
||||
end;
|
||||
|
||||
procedure luaC_register(L : Plua_State; n : PChar; c : PChar);
|
||||
begin
|
||||
lua_pushstring(L, c);
|
||||
lua_setfield(L, -2, n);
|
||||
end;
|
||||
|
||||
procedure luaP_copyfenv(L: Plua_State; Idx: Integer; N: PAnsiChar);
|
||||
begin
|
||||
lua_getfield(L, -2, N);
|
||||
|
|
@ -433,6 +439,7 @@ begin
|
|||
luaP_register(L, 'FileExists', @luaFileExists);
|
||||
luaP_register(L, 'FileGetAttr', @luaFileGetAttr);
|
||||
luaP_register(L, 'DirectoryExists', @luaDirectoryExists);
|
||||
luaC_register(L, 'PathDelim', PathDelim);
|
||||
lua_setglobal(L, 'SysUtils');
|
||||
|
||||
lua_newtable(L);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue