Skip to content
  • Hachem_Muche's avatar
    237d606b
    New utility functions (useful for debugging): · 237d606b
    Hachem_Muche authored
    string.fromFunction(fct, fmt) returns a string abbreviation for a function, including filepath, line numbers
    
    string.fromValue(v, recurse, offset, prefix, suffix) -- enhancement of tostring function with more thorough handling of tables and functions
    
    string.fromTable(src, recurse, offset, prefix, suffix, key_recurse): returns a single-line string representation of a table, including string representations of subtables and functions.  The recursion level for both keys and values can be set.  The converted string is lua source code compatible, depending on arguments.
    237d606b
    New utility functions (useful for debugging):
    Hachem_Muche authored
    string.fromFunction(fct, fmt) returns a string abbreviation for a function, including filepath, line numbers
    
    string.fromValue(v, recurse, offset, prefix, suffix) -- enhancement of tostring function with more thorough handling of tables and functions
    
    string.fromTable(src, recurse, offset, prefix, suffix, key_recurse): returns a single-line string representation of a table, including string representations of subtables and functions.  The recursion level for both keys and values can be set.  The converted string is lua source code compatible, depending on arguments.
Loading