source: anuga_work/development/anugavis/src/libanugavis/error.c @ 5216

Last change on this file since 5216 was 5216, checked in by jack, 16 years ago

Separated src into src/anugavis_simple and src/libanugavis.

File size: 326 bytes
Line 
1#include <SDL.h>
2#include "anugavis.h"
3
4#define MAX_ERROR_LEN 50
5
6static char error[MAX_ERROR_LEN];
7
8char* AnugaVis_GetError(void){
9  return error;
10}
11
12void AnugaVis_SetError(const char *format, ...){
13  va_list args;
14  va_start(args, format);
15  vsnprintf(error, MAX_ERROR_LEN, format, args);
16  va_end(args);
17}
Note: See TracBrowser for help on using the repository browser.