SameBoy/gtk3/macros.h

12 lines
426 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))
2020-04-11 22:38:18 +00:00
#define action_set_enabled(map, name, value) g_simple_action_set_enabled(G_SIMPLE_ACTION(g_action_map_lookup_action(G_ACTION_MAP(map), name)), value);
2019-09-27 21:10:28 +00:00
#define itoa(val) g_strdup_printf("%i", val)
#endif /* macros_h */