Module lua-nucleo.diagnostics

Various code diagnostics utilities

This file is a part of lua-nucleo library

Info:

  • Copyright: lua-nucleo authors (see file COPYRIGHT for the license)

Tables

SourceLocation Source code location

Local Functions

capture_source_location ([level=1]) Captures location in source code at given call stack level.


Tables

SourceLocation
Source code location

Fields:

  • source string exact source filename
  • file string short source filename
  • line int line number in the source file

Local Functions

capture_source_location ([level=1])
Captures location in source code at given call stack level.

Returns nil if requested call stack level is larger than number of functions currently in the call stack.

Parameters:

  • level int call stack level (default 1)

Returns:

    SourceLocation Source code location.

See also:

generated by LDoc 1.4.6 Last updated 2021-04-22 13:57:02