]> icculus.org git repositories - btb/d2x.git/blob - include/mono.h
use PATH_MAX for hog pathname, ensure correct translation of path separators
[btb/d2x.git] / include / mono.h
1 /*
2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.  
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13
14 #ifndef _MONO_H
15 #define _MONO_H
16
17 #include <stdio.h>
18 #include <stdarg.h>
19 #include "console.h"
20
21 #ifndef macintosh
22 static inline void _do_mprintf(int n, char *fmt, ...)
23 {
24         char buffer[1024];
25         va_list arglist;
26
27         va_start (arglist, fmt);
28         vsprintf (buffer, fmt, arglist);
29         va_end (arglist);
30         
31         con_printf (CON_DEBUG, buffer);
32 }
33
34 #define mprintf(args) _do_mprintf args
35 #else
36 #define mprintf(args) _mprintf args
37 #endif
38
39 #define minit()
40 #define mclose(n)
41 #define mopen( n, row, col, width, height, title )
42 #define mDumpD(window, int_var) 
43 #define mDumpX(window, int_var) 
44 #define mclear( n )
45 #define mprintf_at(args)
46 #define mputc( n, c )
47 #define mputc_at( n, row, col, c )
48 #define msetcursor( row, col )
49 #define mrefresh(n)
50
51 #endif
52
53