implemented atan2
This commit is contained in:
parent
8067b93e62
commit
c9f15fceb9
|
|
@ -1134,8 +1134,20 @@ Boolean builtin_atan(InterpreterState *interpreter_state) {
|
|||
}
|
||||
|
||||
Boolean builtin_atan2(InterpreterState *interpreter_state) {
|
||||
(void)interpreter_state;
|
||||
return FALSE;
|
||||
NUMERIC_TYPES;
|
||||
(void)ai;
|
||||
(void)bi;
|
||||
(void)type;
|
||||
|
||||
StackItem *node = interpreter_state->stack;
|
||||
interpreter_state->stack = interpreter_state->stack->next->next;
|
||||
node->next->next = NULL;
|
||||
clean_stack(node);
|
||||
|
||||
return push_token(interpreter_state, (Token){
|
||||
.type = TOKEN_DOUBLE,
|
||||
.double_literal = atan2(bf, af),
|
||||
});
|
||||
}
|
||||
|
||||
Boolean builtin_bitand(InterpreterState *interpreter_state) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue