diff options
author | Wander Nauta <info@wandernauta.nl> | 2015-07-17 22:45:42 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-07-18 10:33:22 -0400 |
commit | 7732bec9b8b94cb43647dcb7f5bd2619224bd87a (patch) | |
tree | 4b5fe295d4b62ecc9f6bc79c32df9a74beb6ab62 /test/functional/api/vim_spec.lua | |
parent | 14ae3c0cbd4052b562814fbe7732b1f26bc4bb13 (diff) | |
download | rneovim-7732bec9b8b94cb43647dcb7f5bd2619224bd87a.tar.gz rneovim-7732bec9b8b94cb43647dcb7f5bd2619224bd87a.tar.bz2 rneovim-7732bec9b8b94cb43647dcb7f5bd2619224bd87a.zip |
eval: Fix duplicate code in trig/math functions #3035
The same error checking/recovery code was duplicated among the f_acos,
f_asin, f_atan, f_ceil, f_cos, f_cosh, f_exp, f_floor, f_log, f_log10,
f_round, f_sin, f_sinh, f_sqrt, f_tan, f_tanh and f_trunc functions.
This commit moves that code into a wrapper function.
`trunc` is not in C90, but it is in C99, which is what neovim targets,
so we use it here.
Diffstat (limited to 'test/functional/api/vim_spec.lua')
0 files changed, 0 insertions, 0 deletions