• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Add NO_ITEM macro to ary.h (wikitext, d892368)

Created 2/5/2008, updated 3/5/2024
  • snippets

Using this is slightly nicer than having to explicitly compare against INT_MAX.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Teach ary_entry to handle negative offsets (wikitext, 5747c2f)
Replace calls to _Wikitext_count with ary_count (wikitext, 9108643) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).