summaryrefslogtreecommitdiff
path: root/common/command.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-03-21 15:44:33 +0900
committertmk <nobody@nowhere>2013-03-21 15:44:33 +0900
commit2b08a150a41e25e87362436b7307bb1be35529f3 (patch)
treee176fafe0e7723612f7fb34b88105ea892f35404 /common/command.h
parent8580c8d291a432d5004c46321aa3c1b1626cdadd (diff)
parentb2a19328ad35f51dcc9cef7c4d2801acd143582a (diff)
Merge branch 'add_build_options'
Diffstat (limited to 'common/command.h')
-rw-r--r--common/command.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/command.h b/common/command.h
index dafd4d0f38..be739fafe8 100644
--- a/common/command.h
+++ b/common/command.h
@@ -18,8 +18,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef COMMAND_H
#define COMMAND
+#ifdef COMMAND_ENABLE
bool command_proc(uint8_t code);
/* This allows to extend commands. Return 0 when command is not processed. */
bool command_extra(uint8_t code);
+#else
+#define command_proc(code) false
+#endif
#endif