Last change
on this file since 5216 was
5216,
checked in by jack, 17 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 | |
---|
6 | static char error[MAX_ERROR_LEN]; |
---|
7 | |
---|
8 | char* AnugaVis_GetError(void){ |
---|
9 | return error; |
---|
10 | } |
---|
11 | |
---|
12 | void 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.