Split functions into many files, remove string from std.
parent
3c949c9ed3
commit
22ac8ba2d0
@ -1,44 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "ref.hpp"
|
||||
#include "util.hpp"
|
||||
#include "function_utils.hpp"
|
||||
extern "C" {
|
||||
#include "libabacus.h"
|
||||
}
|
||||
|
||||
FUNCTION(print_string);
|
||||
FUNCTION(to_string_num);
|
||||
FUNCTION(to_string_bool);
|
||||
FUNCTION(to_string_unit);
|
||||
|
||||
FUNCTION(plus);
|
||||
FUNCTION(minus);
|
||||
FUNCTION(times);
|
||||
FUNCTION(divide);
|
||||
FUNCTION(pow);
|
||||
|
||||
FUNCTION(lt);
|
||||
FUNCTION(lte);
|
||||
FUNCTION(equals);
|
||||
FUNCTION(gt);
|
||||
FUNCTION(gte);
|
||||
|
||||
FUNCTION(negate);
|
||||
FUNCTION(factorial);
|
||||
|
||||
FUNCTION(ln);
|
||||
FUNCTION(exp);
|
||||
|
||||
FUNCTION(sqrt);
|
||||
|
||||
FUNCTION(sin);
|
||||
FUNCTION(cos);
|
||||
FUNCTION(tan);
|
||||
|
||||
FUNCTION(arcsin);
|
||||
FUNCTION(arccos);
|
||||
FUNCTION(arctan);
|
||||
|
||||
FUNCTION(quit);
|
||||
FUNCTION(request_precision);
|
||||
#include "operator_functions.hpp"
|
||||
#include "other_functions.hpp"
|
||||
#include "trig_functions.hpp"
|
||||
|
@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include "function_utils.hpp"
|
||||
|
||||
FUNCTION(plus);
|
||||
FUNCTION(minus);
|
||||
FUNCTION(times);
|
||||
FUNCTION(divide);
|
||||
FUNCTION(pow);
|
||||
|
||||
FUNCTION(lt);
|
||||
FUNCTION(lte);
|
||||
FUNCTION(equals);
|
||||
FUNCTION(gt);
|
||||
FUNCTION(gte);
|
||||
|
||||
FUNCTION(negate);
|
||||
FUNCTION(factorial);
|
@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "function_utils.hpp"
|
||||
|
||||
FUNCTION(ln);
|
||||
FUNCTION(exp);
|
||||
|
||||
FUNCTION(sqrt);
|
@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "function_utils.hpp"
|
||||
|
||||
FUNCTION(quit);
|
||||
FUNCTION(request_precision);
|
@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "function_utils.hpp"
|
||||
|
||||
FUNCTION(print_string);
|
||||
FUNCTION(to_string_num);
|
||||
FUNCTION(to_string_bool);
|
||||
FUNCTION(to_string_unit);
|
@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "function_utils.hpp"
|
||||
|
||||
FUNCTION(sin);
|
||||
FUNCTION(cos);
|
||||
FUNCTION(tan);
|
||||
|
||||
FUNCTION(arcsin);
|
||||
FUNCTION(arccos);
|
||||
FUNCTION(arctan);
|
||||
|
Loading…
Reference in New Issue