summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-03-19 16:05:53 +0900
committertmk <nobody@nowhere>2013-03-19 16:05:53 +0900
commit16870412679225d1a3b46c78928757deb713ae08 (patch)
treefe75031c2d2d8f316d11bdcec6901c437f19e48c /common
parent9a106537f64fe61af6048b41262f002ce6a716d9 (diff)
Add COMMAND_ENABLE build option
Diffstat (limited to 'common')
-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