diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-01-16 17:53:37 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-01-16 17:53:37 (GMT) |
commit | 3a4a977678848d7284df585480e4056d5553a4f2 (patch) | |
tree | b9bbe22d6a6d002c57f4d0552bf66fad4de8069a /plugins/pychrysalide/helpers.c | |
parent | 69806d75d7a3d7c0501d8205cd561447b52ac0b2 (diff) |
Dealt with registers and register operands in the Python bindings.
Diffstat (limited to 'plugins/pychrysalide/helpers.c')
-rw-r--r-- | plugins/pychrysalide/helpers.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/pychrysalide/helpers.c b/plugins/pychrysalide/helpers.c index a930097..7e31fa7 100644 --- a/plugins/pychrysalide/helpers.c +++ b/plugins/pychrysalide/helpers.c @@ -31,6 +31,7 @@ #include <string.h> +#include <i18n.h> #include <common/extstr.h> @@ -484,6 +485,32 @@ bool register_python_module_object(PyObject *module, PyTypeObject *type) /****************************************************************************** * * +* Paramètres : self = objet quelconque dont le code Python hérite. * +* args = série d'arguments si présents. * +* * +* Description : Marque l'absence d'implémentation pour une méthode donnée. * +* * +* Retour : NULL pour la levée d'exception. * +* * +* Remarques : - * +* * +******************************************************************************/ + +PyObject *not_yet_implemented_method(PyObject *self, PyObject *args) +{ + PyObject *result; /* Exception à retourner */ + + result = NULL; + + PyErr_SetString(PyExc_NotImplementedError, _("Implementated method is missing")); + + return result; + +} + + +/****************************************************************************** +* * * Paramètres : spec = définition à mettre en place dynamiquement. * * * * Description : Définit dans le tas de Python un nouveau type. * |