19991022-10:41 GMT+1

This commit is contained in:
Viktor Szakats
1999-10-22 08:53:49 +00:00
parent 8665e2523b
commit f0d60c8778
3 changed files with 16 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
19991022-10:41 GMT+1 Victor Szel <info@szelvesz.hu>
* source/rtl/fm.c
tests/memory.prg
+ MEMORY() extended with 1003 and 1004 parameters, to retrieve stack
usage.
19991022-10:33 GMT+1 Victor Szel <info@szelvesz.hu>
* source/rtl/fm.c
tests/memory.prg

View File

@@ -398,6 +398,14 @@ HARBOUR HB_MEMORY( void )
ulResult = s_ulMemoryMaxConsumed;
break;
case 1003: /* Harbour extension (Total items on the stack) */
ulResult = hb_stack.wItems;
break;
case 1004: /* Harbour extension (Total memory size used by the stack [bytes]) */
ulResult = hb_stack.wItems * sizeof( HB_ITEM );
break;
default:
ulResult = 0;
}

View File

@@ -18,5 +18,7 @@ FUNCTION Main()
? 105, MEMORY( 105 )
? 1001, MEMORY( 1001 )
? 1002, MEMORY( 1002 )
? 1003, MEMORY( 1003 )
? 1004, MEMORY( 1004 )
RETURN NIL