Update TraceLib - test1.ring
@@ -27,8 +27,17 @@ func mytrace
"Line Number : " + ringvm_tracedata()[TRACEDATA_LINENUMBER] + nl +
"File Name : " + ringvm_tracedata()[TRACEDATA_FILENAME] + nl +
"Function Name : " + ringvm_tracedata()[TRACEDATA_FUNCNAME] + nl +
- "Method or Function : " + ringvm_tracedata()[TRACEDATA_METHODORFUNC] + nl +
- Copy("=",42) + nl
+ "Method or Function : "
+ if ringvm_tracedata()[TRACEDATA_METHODORFUNC] = TRACEDATA_METHODORFUNC_METHOD
+ see "Method"
+ else
+ if ringvm_tracedata()[TRACEDATA_FUNCNAME] = NULL
+ see "Command"
+ else
+ see "Function"
+ ok
+ ok
+ see nl + Copy("=",42) + nl
class myclass
func mymethod
