9de54cfa74
import fileinput guard = 0 cxxguard = '#ifdef __cplusplus\n' for line in fileinput.input(inplace=True): if line == cxxguard: guard = 1 continue if guard: if line == 'extern "C" {\n': guard = 2 continue if line == '}\n': guard = 0 continue if guard == 2: assert(line == '#endif\n') guard = 0 print cxxguard, continue print line,
23 lines
371 B
C
23 lines
371 B
C
/*
|
|
* messagebox.h
|
|
* d1x-rebirth
|
|
*
|
|
* Display an error or warning messagebox using the OS's window server.
|
|
*
|
|
*/
|
|
|
|
#ifndef _MESSAGEBOX_H
|
|
#define _MESSAGEBOX_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
// Display a warning in a messagebox
|
|
extern void msgbox_warning(const char *message);
|
|
|
|
// Display an error in a messagebox
|
|
extern void msgbox_error(const char *message);
|
|
|
|
#endif
|
|
|
|
#endif
|