mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
made Xprintf inline to prevent double definition when linking HyperRogue with extra code
This commit is contained in:
parent
da60a2f336
commit
888d9ad3a7
2
hyper.h
2
hyper.h
@ -3489,7 +3489,7 @@ void handle_event(SDL_Event& ev);
|
|||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
__attribute__((__format__ (__printf__, 1, 2)))
|
__attribute__((__format__ (__printf__, 1, 2)))
|
||||||
#endif
|
#endif
|
||||||
void Xprintf(const char *fmt, ...) {
|
inline void Xprintf(const char *fmt, ...) {
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vprintf(fmt, ap);
|
vprintf(fmt, ap);
|
||||||
|
Loading…
Reference in New Issue
Block a user