diff --git a/libyasm/bc-int.h b/libyasm/bc-int.h index 2c3d31f4..793af589 100644 --- a/libyasm/bc-int.h +++ b/libyasm/bc-int.h @@ -73,4 +73,7 @@ const void *bc_get_const_data(const bytecode *); #define bcs_next(x) STAILQ_NEXT(x, link) +/* @null@ bytecode *bcs_last(bytecodehead *headp); */ +#define bcs_last(headp) STAILQ_LAST(headp, bytecode, link) + #endif diff --git a/src/bc-int.h b/src/bc-int.h index 2c3d31f4..793af589 100644 --- a/src/bc-int.h +++ b/src/bc-int.h @@ -73,4 +73,7 @@ const void *bc_get_const_data(const bytecode *); #define bcs_next(x) STAILQ_NEXT(x, link) +/* @null@ bytecode *bcs_last(bytecodehead *headp); */ +#define bcs_last(headp) STAILQ_LAST(headp, bytecode, link) + #endif