Current section

Files

Jump to
asm lib asm.ex
Raw

lib/asm.ex

defmodule Asm do
@moduledoc """
Documentation for Asm.
"""
@max_int 9_223_372_036_854_775_807
@min_int -9_223_372_036_854_775_808
@doc """
is_int64(value) returns true if the value is an integer, equals or is less than max_int and equals or is greater than min_int.
"""
defmacro is_int64(value) do
max_int = @max_int
min_int = @min_int
quote do: is_integer(unquote(value)) and unquote(value) <= unquote(max_int) and unquote(value) >= unquote(min_int)
end
def dummy(a), do: a
end