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

Add GC_WRAP_ARY macro (wikitext, f4b4579)

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

Clean up Data_Wrap_Struct usage a little by encapsulating the pattern of "call Data_Wrap_Struct() and store return value on stack in a variable marked as volatile" in a macro.

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

← Extract str_free function into separate function (wikitext, 2bc8593)
Call Data_Wrap_Struct on ary structs (wikitext, 7f506d3) →

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).