diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-19 20:18:01 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-20 12:27:19 +0100 |
commit | 20163c058485dc524402c46f21bbe65a860bf9c5 (patch) | |
tree | 35e6942b65f8138ee073efcec6dae987d9ab0377 /Userland/Libraries/LibJS/Runtime/MathObject.h | |
parent | 3355b52cca1e1a8478ea5dbbd193120af4c83ca6 (diff) | |
download | serenity-20163c058485dc524402c46f21bbe65a860bf9c5.zip |
LibJS: Add ThrowCompletionOr versions of the JS native function macros
The old versions were renamed to JS_DECLARE_OLD_NATIVE_FUNCTION and
JS_DEFINE_OLD_NATIVE_FUNCTION, and will be eventually removed once all
native functions were converted to the new format.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/MathObject.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/MathObject.h | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/MathObject.h b/Userland/Libraries/LibJS/Runtime/MathObject.h index 16b139f65a..a1b8961677 100644 --- a/Userland/Libraries/LibJS/Runtime/MathObject.h +++ b/Userland/Libraries/LibJS/Runtime/MathObject.h @@ -19,41 +19,41 @@ public: virtual ~MathObject() override; private: - JS_DECLARE_NATIVE_FUNCTION(abs); - JS_DECLARE_NATIVE_FUNCTION(random); - JS_DECLARE_NATIVE_FUNCTION(sqrt); - JS_DECLARE_NATIVE_FUNCTION(floor); - JS_DECLARE_NATIVE_FUNCTION(ceil); - JS_DECLARE_NATIVE_FUNCTION(round); - JS_DECLARE_NATIVE_FUNCTION(max); - JS_DECLARE_NATIVE_FUNCTION(min); - JS_DECLARE_NATIVE_FUNCTION(trunc); - JS_DECLARE_NATIVE_FUNCTION(sin); - JS_DECLARE_NATIVE_FUNCTION(cos); - JS_DECLARE_NATIVE_FUNCTION(tan); - JS_DECLARE_NATIVE_FUNCTION(pow); - JS_DECLARE_NATIVE_FUNCTION(exp); - JS_DECLARE_NATIVE_FUNCTION(expm1); - JS_DECLARE_NATIVE_FUNCTION(sign); - JS_DECLARE_NATIVE_FUNCTION(clz32); - JS_DECLARE_NATIVE_FUNCTION(acos); - JS_DECLARE_NATIVE_FUNCTION(acosh); - JS_DECLARE_NATIVE_FUNCTION(asin); - JS_DECLARE_NATIVE_FUNCTION(asinh); - JS_DECLARE_NATIVE_FUNCTION(atan); - JS_DECLARE_NATIVE_FUNCTION(atanh); - JS_DECLARE_NATIVE_FUNCTION(log1p); - JS_DECLARE_NATIVE_FUNCTION(cbrt); - JS_DECLARE_NATIVE_FUNCTION(atan2); - JS_DECLARE_NATIVE_FUNCTION(fround); - JS_DECLARE_NATIVE_FUNCTION(hypot); - JS_DECLARE_NATIVE_FUNCTION(imul); - JS_DECLARE_NATIVE_FUNCTION(log); - JS_DECLARE_NATIVE_FUNCTION(log2); - JS_DECLARE_NATIVE_FUNCTION(log10); - JS_DECLARE_NATIVE_FUNCTION(sinh); - JS_DECLARE_NATIVE_FUNCTION(cosh); - JS_DECLARE_NATIVE_FUNCTION(tanh); + JS_DECLARE_OLD_NATIVE_FUNCTION(abs); + JS_DECLARE_OLD_NATIVE_FUNCTION(random); + JS_DECLARE_OLD_NATIVE_FUNCTION(sqrt); + JS_DECLARE_OLD_NATIVE_FUNCTION(floor); + JS_DECLARE_OLD_NATIVE_FUNCTION(ceil); + JS_DECLARE_OLD_NATIVE_FUNCTION(round); + JS_DECLARE_OLD_NATIVE_FUNCTION(max); + JS_DECLARE_OLD_NATIVE_FUNCTION(min); + JS_DECLARE_OLD_NATIVE_FUNCTION(trunc); + JS_DECLARE_OLD_NATIVE_FUNCTION(sin); + JS_DECLARE_OLD_NATIVE_FUNCTION(cos); + JS_DECLARE_OLD_NATIVE_FUNCTION(tan); + JS_DECLARE_OLD_NATIVE_FUNCTION(pow); + JS_DECLARE_OLD_NATIVE_FUNCTION(exp); + JS_DECLARE_OLD_NATIVE_FUNCTION(expm1); + JS_DECLARE_OLD_NATIVE_FUNCTION(sign); + JS_DECLARE_OLD_NATIVE_FUNCTION(clz32); + JS_DECLARE_OLD_NATIVE_FUNCTION(acos); + JS_DECLARE_OLD_NATIVE_FUNCTION(acosh); + JS_DECLARE_OLD_NATIVE_FUNCTION(asin); + JS_DECLARE_OLD_NATIVE_FUNCTION(asinh); + JS_DECLARE_OLD_NATIVE_FUNCTION(atan); + JS_DECLARE_OLD_NATIVE_FUNCTION(atanh); + JS_DECLARE_OLD_NATIVE_FUNCTION(log1p); + JS_DECLARE_OLD_NATIVE_FUNCTION(cbrt); + JS_DECLARE_OLD_NATIVE_FUNCTION(atan2); + JS_DECLARE_OLD_NATIVE_FUNCTION(fround); + JS_DECLARE_OLD_NATIVE_FUNCTION(hypot); + JS_DECLARE_OLD_NATIVE_FUNCTION(imul); + JS_DECLARE_OLD_NATIVE_FUNCTION(log); + JS_DECLARE_OLD_NATIVE_FUNCTION(log2); + JS_DECLARE_OLD_NATIVE_FUNCTION(log10); + JS_DECLARE_OLD_NATIVE_FUNCTION(sinh); + JS_DECLARE_OLD_NATIVE_FUNCTION(cosh); + JS_DECLARE_OLD_NATIVE_FUNCTION(tanh); }; } |