disallow zero and one argument commandn

master
Daniel Kolesa 2016-08-01 03:00:58 +01:00
parent 3000237c0a
commit 3b478b111d
2 changed files with 0 additions and 6 deletions

View File

@ -2677,8 +2677,6 @@ static inline void callcommand(CsState &cs, Ident *id, TaggedValue *args, int nu
#define CALLCOM(n) \
switch(n) \
{ \
case 0: id->cb_cf0(cs); break; \
case 1: id->cb_cf1(cs, ARG(0)); break; \
case 2: id->cb_cf2(cs, ARG(0), ARG(1)); break; \
case 3: id->cb_cf3(cs, ARG(0), ARG(1), ARG(2)); break; \
case 4: id->cb_cf4(cs, ARG(0), ARG(1), ARG(2), ARG(3)); break; \

View File

@ -161,8 +161,6 @@ struct CsState;
using VarCb = ostd::Function<void(CsState &, Ident &)>;
using CommandFunc = void (*)(CsState &);
using CommandFunc1 = void (*)(CsState &, void *);
using CommandFunc2 = void (*)(CsState &, void *, void *);
using CommandFunc3 = void (*)(CsState &, void *, void *, void *);
using CommandFunc4 = void (*)(CsState &, void *, void *, void *, void *);
@ -204,8 +202,6 @@ struct OSTD_EXPORT Ident {
};
VarCb cb_var;
union {
CommandFunc cb_cf0;
CommandFunc1 cb_cf1;
CommandFunc2 cb_cf2;
CommandFunc3 cb_cf3;
CommandFunc4 cb_cf4;