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

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

static INTVAL print_warning(Interp *interpreter, STRING *msg)

Prints the warning message and the bytecode location.

Parrot Warnings Interface ^

INTVAL Parrot_warn(Interp *interpreter, INTVAL warnclass, 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.

INTVAL Parrot_warn_s(Interp *interpreter, INTVAL warnclass, 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.

POD ERRORS ^

Hey! The above document had some coding errors, which are explained below:

Around line 25:

'=item' outside of any '=over'


parrot