浏览代码

* Added comments to explain the tf_safecall_clearstack and tf_safecall_exceptions target flags

git-svn-id: trunk@15993 -
joost 15 年之前
父节点
当前提交
3ee0e6fd2d
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      compiler/systems.pas

+ 3 - 2
compiler/systems.pas

@@ -335,8 +335,9 @@ interface
             { the os does some kind of stack checking and it can be converted into a rte 202 }
             tf_no_generic_stackcheck,
             tf_has_winlike_resources,
-            tf_safecall_clearstack,
-            tf_safecall_exceptions
+            tf_safecall_clearstack,             // With this flag set, after safecall calls the caller cleans up the stack
+            tf_safecall_exceptions              // Exceptions in safecall calls are not raised, but passed to the caller as an ordinal (hresult) in the function result.
+                                                // The original result (if it exists) is passed as an extra parameter
        );
 
        psysteminfo = ^tsysteminfo;