fn: warning
[contents]

Contents

Syntax

The syntax for warning calls is:

f++:  
warning(string)

n++:  
@warning(string)

Description

The warning function is for throwing warnings, it takes a single string parameter that should be a message to be displayed, the function will then output the warning message along with the file path and line number.

f++ example

Example of warning being used with f++:

warning("file does not exist")

n++ example

Example of warning being used with n++:

@warning("file does not exist")

Sponsors