Handling errors in Perl XS modules

This page deals with how to handle errors when creating a Perl XS module.

If you need to use stdarg error handling, of the type which uses a va_list rather than three dots, there are functions called vwarn and vcroak defined in util.c in the Perl distribution. These functions are not documented. They both take a format string and a pointer to a va_list (rather than a va_list itself) as their second argument.

Web links


Copyright © Ben Bullock 2009-2023. All rights reserved. For comments, questions, and corrections, please email Ben Bullock (benkasminbullock@gmail.com) or use the discussion group at Google Groups. / Privacy / Disclaimer