builtin: define a symbol_op for a generic op acting on integer
commitf7eb2ea83b2ba26032ad0f9d216dda8780165b95
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Fri, 9 Apr 2021 22:00:18 +0000 (10 00:00 +0200)
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Tue, 13 Apr 2021 16:25:38 +0000 (13 18:25 +0200)
tree28b6b0bcdc377ddecc4013ac529b729c6a71c247
parent8fd2c0b489d3fe371081ceddb1637713a452eefd
builtin: define a symbol_op for a generic op acting on integer

This can be used to define some generic (polymorphic) builtin
with a signature like:
<name>(int)
<name>(T, T)
<name>(int, T)
<name>(int, T, long, T, ... T)
where T is some integer type which will be instantiated at each call.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
builtin.c
builtin.h