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

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

static INTVAL print_warning

Prints the warning message and the bytecode location.

Parrot Warnings Interface ^

INTVAL Parrot_warn

The Parrot C string warning/error reporter.

Returns 2 on error, 1 on success.

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

INTVAL Parrot_warn_s

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