소스 검색

+ produce a warning for values, remaining on top of stack at end of function

git-svn-id: branches/wasm@48258 -
nickysn 4 년 전
부모
커밋
b3eca0e4f9
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      compiler/wasm32/hlcgcpu.pas

+ 2 - 0
compiler/wasm32/hlcgcpu.pas

@@ -1603,6 +1603,8 @@ implementation
     begin
       list.concat(taicpu.op_none(a_end_block));
       decblock;
+      if fevalstackheight<>0 then
+        list.concat(tai_comment.Create(strpnew('!!! values remaining on stack at end of block !!!')));
       { todo: inherited? }
     end;