yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze_version.h File Reference

YAZE version helpers and compatibility checks. More...

#include <stdbool.h>
Include dependency graph for yaze_version.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define YAZE_VERSION_STRING   "0.7.0"
 
#define YAZE_VERSION_NUMBER   700
 

Functions

bool yaze_check_version_compatibility (const char *expected_version)
 Check if the current YAZE version is compatible with the expected version.
 
const char * yaze_get_version_string (void)
 Get the current YAZE version string.
 
int yaze_get_version_number (void)
 Get the current YAZE version number.
 

Detailed Description

YAZE version helpers and compatibility checks.

Definition in file yaze_version.h.

Function Documentation

◆ yaze_check_version_compatibility()

bool yaze_check_version_compatibility ( const char * expected_version)

Check if the current YAZE version is compatible with the expected version.

Parameters
expected_versionExpected version string (e.g., "0.3.2")
Returns
true if compatible, false otherwise

Definition at line 68 of file yaze.cc.

References YAZE_VERSION_STRING.

◆ yaze_get_version_string()

const char * yaze_get_version_string ( void )

Get the current YAZE version string.

Returns
A null-terminated string containing the version

Definition at line 64 of file yaze.cc.

References YAZE_VERSION_STRING.

◆ yaze_get_version_number()

int yaze_get_version_number ( void )

Get the current YAZE version number.

Returns
Version number (major * 10000 + minor * 100 + patch)

Definition at line 66 of file yaze.cc.

References YAZE_VERSION_NUMBER.