diff options
Diffstat (limited to 'include/grobot.h')
-rw-r--r-- | include/grobot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/grobot.h b/include/grobot.h index 6ebcca3..1aeafb2 100644 --- a/include/grobot.h +++ b/include/grobot.h @@ -67,6 +67,7 @@ struct _GRobotClass { /* some convenient macros */ #define G_ROBOT_POSITION_X(robot) ((robot)->x) #define G_ROBOT_POSITION_Y(robot) ((robot)->y) +#define sign(x) (x/abs(x)) /* normal GObject stuff */ GType g_robot_get_type(void) G_GNUC_CONST; |