aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/main.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-11-17 15:55:26 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-11-19 08:45:49 +0100
commiteb596add96ade81ee41477cc5233a29bba7b1313 (patch)
treeff9f6948e73f4243cb6e248c1e7a232b4cb1a7fd /build_scripts/main.py
parent84ab9d13b4f912f67afa4e3da13f3957051ddcc3 (diff)
shiboken6: Simplify generating of error returns
shiboken6 needs to generate code with different error returns, for example PyObject *nullptr in normal wrappers and int -1 in _init() functions. For this, CppGenerator had a static string member that could be overridden by instantiating a RAI class ErrorCode. Replace this by a simple enumeration representing the error codes and pass it to the functions where needed. Change-Id: I785ef79ecc25303a87f12959f91f83178c64da1d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'build_scripts/main.py')
0 files changed, 0 insertions, 0 deletions