gobj_set_exit_code()

gobj_set_exit_code()#

Sets the exit code that indicates the reason for the Yuno’s termination.

This value can be retrieved later using gobj_get_exit_code().

Prototype

PUBLIC void gobj_set_exit_code(int exit_code);

Parameters

Key

Type

Description

exit_code

int

The exit code to set:

  • 0: Indicates successful termination.

  • Non-zero values: Indicate an error or specific termination condition.

Return Value

-

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python