ug4
|
Functions | |
function util | CreateGridFuncDebugWriter (approxSpace) |
function util | GetLUAFileAndLine (backtraceLevel) |
function | ug_assert (condition, msg) |
function | ug_cond_warning (condition, text) |
function | ug_error (msg, otherMsg, backtraceSkipLevel) |
function | ug_warning (t) |
function util CreateGridFuncDebugWriter | ( | approxSpace | ) |
Creates a grid function debug writer for the utilities. The function reads the settings from the table util.debug. If this is a boolean variable then no special settings are applied. If this variable is undefinde the no debug writer is created.
approxSpace | the approximation space for the debug writer |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / debug_util.lua :98-128
function util GetLUAFileAndLine | ( | backtraceLevel | ) |
backtraceLevel | the number of levels to go up for backtraceLevel = 0, it returns file and line of the calling function. for backtraceLevel = 1 the file and line of the caller of the calling function and so on. |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / debug_util.lua :82-91
function ug_assert | ( | condition | , |
msg | |||
) |
use it like ug_assert(numPreRefs <= numRefs, "It must be choosen: numPreRefs <= numRefs")
condition | the condition to assert |
msg | (optional) message to be printed if condition is not fulfilled |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / debug_util.lua :57-63
function ug_cond_warning | ( | condition | , |
text | |||
) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / debug_util.lua :70-74
function ug_error | ( | msg | , |
otherMsg | , | ||
backtraceSkipLevel | |||
) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / debug_util.lua :31-52
function ug_warning | ( | t | ) |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / debug_util.lua :65-68