mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
made wren version number accessable via function (#958)
This commit is contained in:
committed by
GitHub
parent
1307bdfb64
commit
e260b467c4
@ -296,6 +296,11 @@ typedef enum
|
|||||||
WREN_TYPE_UNKNOWN
|
WREN_TYPE_UNKNOWN
|
||||||
} WrenType;
|
} WrenType;
|
||||||
|
|
||||||
|
// Get the current wren version number.
|
||||||
|
//
|
||||||
|
// Can be used to range checks over versions.
|
||||||
|
WREN_API int wrenGetVersionNumber();
|
||||||
|
|
||||||
// Initializes [configuration] with all of its default values.
|
// Initializes [configuration] with all of its default values.
|
||||||
//
|
//
|
||||||
// Call this before setting the particular fields you care about.
|
// Call this before setting the particular fields you care about.
|
||||||
|
|||||||
@ -36,6 +36,11 @@ static void* defaultReallocate(void* ptr, size_t newSize, void* _)
|
|||||||
return realloc(ptr, newSize);
|
return realloc(ptr, newSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int wrenGetVersionNumber()
|
||||||
|
{
|
||||||
|
return WREN_VERSION_NUMBER;
|
||||||
|
}
|
||||||
|
|
||||||
void wrenInitConfiguration(WrenConfiguration* config)
|
void wrenInitConfiguration(WrenConfiguration* config)
|
||||||
{
|
{
|
||||||
config->reallocateFn = defaultReallocate;
|
config->reallocateFn = defaultReallocate;
|
||||||
|
|||||||
Reference in New Issue
Block a user