Changeset 3b9ca71 for commands.c
- Timestamp:
- Feb 19, 2013, 8:29:38 PM (12 years ago)
- Branches:
- master, release-1.10
- Children:
- 4584d1f
- Parents:
- 69f74c2
- git-author:
- David Benjamin <davidben@mit.edu> (06/09/12 23:16:53)
- git-committer:
- David Benjamin <davidben@mit.edu> (02/19/13 20:29:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r353719a r3b9ca71 1604 1604 if (v == NULL) { 1605 1605 if (!silent) owl_function_error("Unknown variable '%s'", var); 1606 } else if (requirebool && owl_variable_get_type(v) != OWL_VARIABLE_BOOL) { 1607 // FIXME: The above won't work when we make perl variables OWL_VARIABLE_SV 1606 } else if (requirebool && !v->takes_on_off) { 1608 1607 if (!silent) owl_function_error("Variable '%s' is not a boolean", var); 1609 1608 } else { … … 1634 1633 if (v == NULL) { 1635 1634 if (!silent) owl_function_error("Unknown variable '%s'", var); 1636 } else if (owl_variable_get_type(v) != OWL_VARIABLE_BOOL) { 1637 // FIXME: The above won't work when we make perl variables OWL_VARIABLE_SV 1635 } else if (!v->takes_on_off) { 1638 1636 if (!silent) owl_function_error("Variable '%s' is not a boolean", var); 1639 1637 } else {
Note: See TracChangeset
for help on using the changeset viewer.