Simplify macro

As a bonus it's also optimized.
This commit is contained in:
Kostis Sagonas 2010-10-01 21:39:35 +08:00 committed by Juan Jose Comellas
parent 76cebab9a9
commit 91143ed4b3

View File

@ -25,7 +25,7 @@
-define(OPT_ARG, 4).
-define(OPT_HELP, 5).
-define(IS_OPT_SPEC(Opt), (is_tuple(Opt) andalso (size(Opt) =:= ?OPT_HELP))).
-define(IS_OPT_SPEC(Opt), (tuple_size(Opt) =:= ?OPT_HELP)).
%% Atom indicating the data type that an argument can be converted to.