aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-22 05:16:47 +1000
committerDavid Walter Seikel2012-02-22 05:16:47 +1000
commit4ec1cd74ae7ca91c36283db1df4e64692de01cb8 (patch)
tree2c8753cb108018c5723d796c4a2eb48c1316c589
parentRejig how the LSL functions are defined. My metatable ideas did not pan out,... (diff)
downloadSledjHamr-4ec1cd74ae7ca91c36283db1df4e64692de01cb8.zip
SledjHamr-4ec1cd74ae7ca91c36283db1df4e64692de01cb8.tar.gz
SledjHamr-4ec1cd74ae7ca91c36283db1df4e64692de01cb8.tar.bz2
SledjHamr-4ec1cd74ae7ca91c36283db1df4e64692de01cb8.tar.xz
Fix up the EOF fix up, and commentry++.
-rw-r--r--LuaSL/src/LSL.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/LuaSL/src/LSL.lua b/LuaSL/src/LSL.lua
index 53b5d72..a89c06f 100644
--- a/LuaSL/src/LSL.lua
+++ b/LuaSL/src/LSL.lua
@@ -618,6 +618,8 @@ function LSL.mainLoop(sid, x)
618 618
619 SID = sid 619 SID = sid
620 620
621 LSL.EOF = "\n\n\n" -- Fix this up now.
622
621 if not status then 623 if not status then
622 msg("Can't open the luaproc channel " .. sid .. " ERROR MESSAGE: " .. errorMsg) 624 msg("Can't open the luaproc channel " .. sid .. " ERROR MESSAGE: " .. errorMsg)
623 return 625 return
@@ -694,6 +696,7 @@ function LSL.vectorTypecast(x)
694end 696end
695 697
696 698
699-- Called at compiler set up time, to produce the constants.lsl file.
697function LSL.gimmeLSL() 700function LSL.gimmeLSL()
698 for i,v in ipairs(constants) do 701 for i,v in ipairs(constants) do
699 local value = LSL[v.name] 702 local value = LSL[v.name]
@@ -709,7 +712,6 @@ function LSL.gimmeLSL()
709 print(v.Type .. " " .. k .. "(" .. args2string(false, unpack(v.args)) .. "){}") 712 print(v.Type .. " " .. k .. "(" .. args2string(false, unpack(v.args)) .. "){}")
710 end 713 end
711 end 714 end
712 LSL.EOF = "\n\n\n" -- Fix this up now.
713end 715end
714 716
715 717