Skip to content

Commit

Permalink
Only pass the arguments that are used.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Moore committed Jan 4, 2009
1 parent 58902d5 commit 37e1861
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions synfig-core/trunk/src/synfig/valuenode.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
# define DCAST_HACK_ENABLE()
#endif

#define VALUENODE_CHECK_TYPE(variable, type) \
#define VALUENODE_CHECK_TYPE(type) \
/* I don't think this ever happens - maybe remove this code? */ \
if (get_type() == ValueBase::TYPE_NIL) { \
warning("%s:%d get_type() IS nil sometimes!", \
Expand All @@ -79,15 +79,15 @@
return false; \
}

#define VALUENODE_SET_VALUE(variable, type) \
#define VALUENODE_SET_VALUE(variable) \
variable = value; \
signal_child_changed()(i); \
signal_value_changed()(); \
return true

#define CHECK_TYPE_AND_SET_VALUE(variable, type) \
VALUENODE_CHECK_TYPE(variable, type) \
VALUENODE_SET_VALUE(variable, type)
VALUENODE_CHECK_TYPE(type) \
VALUENODE_SET_VALUE(variable)

/* === T Y P E D E F S ===================================================== */

Expand Down

0 comments on commit 37e1861

Please sign in to comment.