Catch macro infinite recursion. Fix of tan function.

This commit is contained in:
Christoffer Lerno
2023-02-05 00:21:26 +01:00
parent 38b44a7265
commit 5a65a57e42
5 changed files with 12 additions and 5 deletions

View File

@@ -377,7 +377,7 @@ macro tan(x)
$elif ($Type.typeid == float.typeid):
return _tanf(x);
$else:
return tan(x);
return _tan(x);
$endif;
}
@@ -691,5 +691,5 @@ extern fn double _atan2(double, double) @extern("atan2");
extern fn float _atan2f(float, float) @extern("atan2f");
extern fn void _sincos(double, double*) @extern("sincos");
extern fn void _sincosf(float, float*) @extern("sincosf");
extern fn void _tan(double x, double y) @extern("tan");
extern fn void _tanf(double x, double y) @extern("tanf");
extern fn double _tan(double x) @extern("tan");
extern fn float _tanf(float x) @extern("tanf");