DWARF_END_MACRO_FILE(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’– NAME πŸ’–

Hey bestie, welcome to the DWARF_END_MACRO_FILE(3) page! πŸ’… This is all about dwarf_end_macro_file β€” the function that marks the end of the current source file inclusion. Slay, closure is important. ✨

πŸ“š LIBRARY πŸ“š

DWARF Access Library (libdwarf, -ldwarf) 🫢

✨ SYNOPSIS ✨

#include <libdwarf.h>

int
dwarf_end_macro_file(Dwarf_P_Debug dbg, Dwarf_Error *err);

🌸 DESCRIPTION 🌸

Function dwarf_end_macro_file() marks the end of the current source file inclusion. That's the whole vibe β€” it's giving "we're done with this included source file now," and honestly, iconic. πŸŽ€

Argument dbg should reference a DWARF producer instance allocated using dwarf_producer_init(3) or dwarf_producer_init_b(3). No random dbg impostors, okay? Main character energy only. πŸ‘‘

If argument err is not NULL, it will be used to store error information in case of an error. So if things go sideways, err is ready to spill the tea. 😭

πŸ”₯ RETURN VALUES πŸ”₯

On success, function dwarf_end_macro_file() returns DW_DLV_OK. Periodt. πŸ’š

In case of an error, function dwarf_end_macro_file() returns DW_DLV_ERROR and sets the argument err. Not the happy ending, but at least err tells you what happened. πŸ’€

πŸ™ˆ ERRORS πŸ™ˆ

Function dwarf_end_macro_file() can fail with:

  • [DW_DLE_ARGUMENT] β€” Argument dbg was NULL. Literally no dbg? Bestie. 😭
  • [DW_DLE_MEMORY] β€” An out of memory condition was encountered during the execution of the function. The memory said "not today." πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

dwarf(3), dwarf_def_macro(3), dwarf_producer_init(3), dwarf_producer_init_b(3), dwarf_start_macro_file(3), dwarf_undef_macro(3), dwarf_vendor_ext(3)


okay bye bestie 🫢 β€” this cutie came from Debian, dated September 25, 2011, and it's the DWARF_END_MACRO_FILE(3) page. periodt πŸ’…

πŸ“¦ where this page comes from