change custom_compiled() to return BOOL

Also make slight improvements on error messages produced
when custom_compiled() returns an unexpected value.
This commit is contained in:
Landon Curt Noll
2023-08-19 11:56:10 -07:00
parent c705b74e67
commit f2e4f638f6
4 changed files with 22 additions and 16 deletions

View File

@@ -39,16 +39,16 @@
* custom_compiled - determine if custom functions are compiled into libcustcalc
*
* returns:
s* 1 ==> libcustcalc was compiled with CUSTOM defined
* 0 ==> libcustcalc was compiled with CUSTOM undefined
s* TRUE ==> libcustcalc was compiled with CUSTOM defined
* FALSE ==> libcustcalc was compiled with CUSTOM undefined
*/
E_FUNC int
E_FUNC BOOL
custom_compiled(void)
{
#if defined(CUSTOM)
return 1;
return TRUE;
#else /* CUSTOM */
return 0;
return FALSE;
#endif /* CUSTOM */
}