NAME ^

src/warnings.c - Warning and error reporting

DESCRIPTION ^

Parrot STRING and C string versions of a function to print warning/error messages.

void print_pbc_location(PARROT_INTERP)

Prints the bytecode location of the warning or error to PIO_STDERR.

static INTVAL print_warning(PARROT_INTERP, NULLOK(STRING *msg))

Prints the warning message and the bytecode location.

Parrot Warnings Interface ^

PARROT_API INTVAL Parrot_warn(PARROT_INTERP, INTVAL warnclass, ARGIN(const char *message), ...)

The Parrot C string warning/error reporter.

Returns 2 on error, 1 on success.

message, .. can be a Parrot_vsprintf_c() format with arguments.

PARROT_API INTVAL Parrot_warn_s(NULLOK_INTERP, INTVAL warnclass, NOTNULL(STRING *message), ...)

The Parrot STRING warning/error reporter.

Returns 2 on error, 1 on success.

message, .. can be a Parrot_vsprintf_s() format with arguments.

SEE ALSO ^

include/parrot/warnings.h.


parrot