Various corrections:

Wolfgang added to AUTHORS.txt
    PhenomX4 target added
    profiles version updated
    slightly enhanced Dark theme
    --large-adress-aware included in the example cmake option file
This commit is contained in:
Hombre
2011-05-02 00:08:38 +02:00
commit 7e33f6520f
675 changed files with 143011 additions and 0 deletions

56
rtengine/klt/error.c Normal file
View File

@@ -0,0 +1,56 @@
/*********************************************************************
* error.c
*
* Error and warning messages, and system commands.
*********************************************************************/
/* Standard includes */
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
/*********************************************************************
* KLTError
*
* Prints an error message and dies.
*
* INPUTS
* exactly like printf
*/
void KLTError(char *fmt, ...)
{
va_list args;
va_start(args, fmt);
fprintf(stderr, "KLT Error: ");
vfprintf(stderr, fmt, args);
fprintf(stderr, "\n");
va_end(args);
exit(1);
}
/*********************************************************************
* KLTWarning
*
* Prints a warning message.
*
* INPUTS
* exactly like printf
*/
void KLTWarning(char *fmt, ...)
{
va_list args;
va_start(args, fmt);
fprintf(stderr, "KLT Warning: ");
vfprintf(stderr, fmt, args);
fprintf(stderr, "\n");
fflush(stderr);
va_end(args);
}