aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LSL.lua
diff options
context:
space:
mode:
Diffstat (limited to 'LuaSL/src/LSL.lua')
-rw-r--r--LuaSL/src/LSL.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/LuaSL/src/LSL.lua b/LuaSL/src/LSL.lua
index a89c06f..8861bf3 100644
--- a/LuaSL/src/LSL.lua
+++ b/LuaSL/src/LSL.lua
@@ -25,6 +25,7 @@ upvalue--either way is a bit more efficient and less error prone.
25 25
26local LSL = {}; 26local LSL = {};
27local SID = ""; 27local SID = "";
28local scriptName = "";
28 29
29-- Debugging aids 30-- Debugging aids
30 31
@@ -567,6 +568,13 @@ function --[[list]] LSL.llParseString2List(--[[string]] In, --[[list]] l, --[[li
567function --[[list]] LSL.llParseStringKeepNulls(--[[string]] In, --[[list]] l, --[[list]] l1) return {} end; 568function --[[list]] LSL.llParseStringKeepNulls(--[[string]] In, --[[list]] l, --[[list]] l1) return {} end;
568 569
569 570
571-- LSL script functions
572
573function --[[string]] LSL.llGetScriptName()
574 return scriptName
575end
576
577
570-- Crements stuff. 578-- Crements stuff.
571 579
572function LSL.preDecrement(name) _G[name] = _G[name] - 1; return _G[name]; end; 580function LSL.preDecrement(name) _G[name] = _G[name] - 1; return _G[name]; end;
@@ -612,11 +620,12 @@ function LSL.stateChange(x)
612 end 620 end
613end; 621end;
614 622
615function LSL.mainLoop(sid, x) 623function LSL.mainLoop(sid, name, x)
616 local status, errorMsg = luaproc.newchannel(sid) 624 local status, errorMsg = luaproc.newchannel(sid)
617 local result 625 local result
618 626
619 SID = sid 627 SID = sid
628 scriptName = name
620 629
621 LSL.EOF = "\n\n\n" -- Fix this up now. 630 LSL.EOF = "\n\n\n" -- Fix this up now.
622 631