Commits

Daniel Poelzleithner committed 3480a11

fix doc and depricated api use

  • Participants
  • Parent commits fb7b7ac

Comments (0)

Files changed (2)

framework/env/trace/debug.lua

 --[[--
 trace.debug(...)
-  arg     -- messages to be inserted into the trace log
+  ...     -- messages to be inserted into the trace log
 
 
 This function can be used to include debug output in the trace log.
 --]]--
 
 function trace.debug(...)
-  message = ""
-  for i= 1,arg.n,1 do
+  local message = ""
+  local arg = {...}
+  for i= 1,#arg,1 do
     message = message..tostring(arg[i]).." "
   end
   trace._new_entry{ type = "debug", message = message }

framework/env/trace/debug_table.lua

 --[[--
-trace.debug(
+trace.debug_table(
   message     -- message to be inserted into the trace log
 )