Add bcs_last() macro.

svn path=/trunk/yasm/; revision=496
0.3
Peter Johnson 23 years ago
parent 251588a7ad
commit d2a2e6b3f8
  1. 3
      libyasm/bc-int.h
  2. 3
      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

@ -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

Loading…
Cancel
Save