SameBoy/gtk3/macros.h

11 lines
275 B
C
Raw Normal View History

2019-09-27 21:10:28 +00:00
#ifndef macros_h
#define macros_h
#define str(x) #x
#define xstr(x) str(x)
#define get_object(id) gtk_builder_get_object(builder, id)
#define builder_get(type, id) type(gtk_builder_get_object(builder, id))
2019-09-27 21:10:28 +00:00
#define itoa(val) g_strdup_printf("%i", val)
#endif /* macros_h */