diff options
Diffstat (limited to 'plugins/dex/method.c')
-rw-r--r-- | plugins/dex/method.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/dex/method.c b/plugins/dex/method.c index 4013436..5b7b30e 100644 --- a/plugins/dex/method.c +++ b/plugins/dex/method.c @@ -24,6 +24,7 @@ #include "method.h" +#include <assert.h> #include <stddef.h> #include <string.h> @@ -43,7 +44,11 @@ struct _GDexMethod GBinRoutine *routine; /* Représentation interne */ - /* FIXME : méthode interne seulement */ + /** + * Les champs suivants ne sont renseignés que pour les objets mis + * en place à partir du constructeur g_dex_method_new_defined(). + */ + encoded_method info; /* Propriétés de la méthode */ bool has_body; /* Indication de présence */ code_item body; /* Corps de la méthode */ @@ -439,6 +444,8 @@ DexVariableIndex g_dex_method_get_variable(const GDexMethod *method, uint32_t in const code_item *body; /* Corps de la méthode */ uint32_t pivot; /* Bascule pour les arguments */ + assert(method->has_body); + info = &method->info; body = &method->body; |