summaryrefslogtreecommitdiff
path: root/firmware/export/config.h
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2010-02-11 19:15:37 +0000
committerAmaury Pouly <pamaury@rockbox.org>2010-02-11 19:15:37 +0000
commite5caf93e237a168f923a2eeb7bccaae9b9a51c30 (patch)
tree465678c398f728181f1749ffb2c872f954798462 /firmware/export/config.h
parent552a54d87ffceb20eff1b206832cd10ad3677a24 (diff)
Commit FS#10889: detect file handles leaks in plugins and automatically close them on exit and warn the user.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24598 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r--firmware/export/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 516161191b..994397e595 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -908,5 +908,11 @@ Lyre prototype 1 */
#define STORAGE_ALIGN_MASK 0
#endif
+/* This attribute can be used to enable to detection of plugin file handles leaks.
+ * When enabled, the plugin core will monitor open/close/creat and when the plugin exits
+ * will display an error message if the plugin leaked some file handles */
+#ifndef SIMULATOR
+#define HAVE_PLUGIN_CHECK_OPEN_CLOSE
+#endif
#endif /* __CONFIG_H__ */