Skip to content

Commit 4780832

Browse files
committed
added calculator
1 parent 35ab41f commit 4780832

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

calculator_main

455 KB
Binary file not shown.

examples/fps_rpg_shooter

-374 KB
Binary file not shown.

include/pythonic/REPL/pythonicCalculator.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace pythonic
5757
// 4: Unary Minus (~)
5858
// 5: Functions
5959

60-
int get_operator_precedence(const std::string &op)
60+
inline int get_operator_precedence(const std::string &op)
6161
{
6262
if (op == "+" || op == "-")
6363
return 1;
@@ -70,12 +70,12 @@ namespace pythonic
7070
return 0;
7171
}
7272

73-
bool is_right_associative(const std::string &op)
73+
inline bool is_right_associative(const std::string &op)
7474
{
7575
return op == "^" || op == "~";
7676
}
7777

78-
bool is_math_function(const std::string &str)
78+
inline bool is_math_function(const std::string &str)
7979
{
8080
static const std::vector<std::string> funcs = {
8181
"sin", "cos", "tan", "cot", "sec", "csc",

0 commit comments

Comments
 (0)