Expose the platform name to the public API.
This commit is contained in:
parent
c17df6aca2
commit
2340e63f8b
|
@ -395,6 +395,11 @@ TIDY_EXPORT ctmbstr TIDY_CALL tidyReleaseDate(void);
|
||||||
*/
|
*/
|
||||||
TIDY_EXPORT ctmbstr TIDY_CALL tidyLibraryVersion(void);
|
TIDY_EXPORT ctmbstr TIDY_CALL tidyLibraryVersion(void);
|
||||||
|
|
||||||
|
/** Get the platform for which Tidy was built.
|
||||||
|
** @result The string representing the version number.
|
||||||
|
*/
|
||||||
|
TIDY_EXPORT ctmbstr TIDY_CALL tidyPlatform(void);
|
||||||
|
|
||||||
|
|
||||||
/** @}
|
/** @}
|
||||||
** @name Diagnostics and Repair
|
** @name Diagnostics and Repair
|
||||||
|
|
|
@ -176,6 +176,15 @@ ctmbstr TIDY_CALL tidyLibraryVersion(void)
|
||||||
return TY_(tidyLibraryVersion)();
|
return TY_(tidyLibraryVersion)();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctmbstr TIDY_CALL tidyPlatform(void)
|
||||||
|
{
|
||||||
|
#ifdef PLATFORM_NAME
|
||||||
|
return PLATFORM_NAME;
|
||||||
|
#else
|
||||||
|
return NULL;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Get/set configuration options
|
/* Get/set configuration options
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue