Check docstrings in the qrenderdoc bindings as well

This commit is contained in:
baldurk
2017-03-29 17:09:14 +01:00
parent 15d427f3d0
commit 35ae996a34
+19
View File
@@ -69,6 +69,25 @@ CONTAINER_TYPEMAPS(QMap)
}
};
%header %{
#include <set>
#include "Code/pyrenderdoc/document_check.h"
%}
%init %{
PyDateTime_IMPORT;
// verify that docstrings aren't duplicated, which is a symptom of missing DOCUMENT()
// macros around newly added classes/members.
// For enums, verify that all constants are documented in the parent docstring
#if !defined(RELEASE)
static bool doc_checked = false;
if(!doc_checked)
{
doc_checked = true;
check_docstrings(swig_type_initial, sizeof(swig_type_initial)/sizeof(swig_type_initial[0]));
}
#endif
%}