Skip to content

Legacy: PrintError routine

Archie_UwU edited this page Nov 19, 2023 · 1 revision

You are reading the documentation of YYToolkit Legacy (v2.x.x) - for documentation on current-gen YYTK, see the Homepage.


Writes formatted output to stdout, without breaking console input / output like regular printf.

The formatting is as follows: [file.cpp(1337)] => My formatted message.

Syntax

void PrintMessage(
    const char* File,
    const int& Line,
    const char* fmt,
    ...
);

Parameters

File

The file in which this error occurred. Plugins should use the __FILE__ macro.

Line

The line at which this error occurred. Plugins should use the __LINE__ macro.

fmt

A format string to be printed - the formatting is same as in printf

... (variadic arguments)

Other arguments, the types to pass may change depending on the format string - same as in printf

Quick Access

Documentation

Writeups

Clone this wiki locally