mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-01-01 03:12:23 +08:00
Added string comparisons
This commit is contained in:
parent
1a42a06df4
commit
2a4b1acfd1
@ -117,11 +117,13 @@ void bootstrap(BoxedCPP_System &s)
|
||||
s.register_function(boost::function<bool (bool, bool)>(&bool_and<bool, bool>), "&&");
|
||||
s.register_function(boost::function<bool (bool, bool)>(&bool_or<bool, bool>), "||");
|
||||
|
||||
s.register_function(boost::function<bool (const std::string &, const std::string &)>(&equals<const std::string &, const std::string &>), "==");
|
||||
s.register_function(boost::function<bool (int, int)>(&equals<int, int>), "==");
|
||||
s.register_function(boost::function<bool (int, double)>(&equals<int, double>), "==");
|
||||
s.register_function(boost::function<bool (double, int)>(&equals<double, int>), "==");
|
||||
s.register_function(boost::function<bool (double, double)>(&equals<double, double>), "==");
|
||||
|
||||
s.register_function(boost::function<bool (const std::string &, const std::string &)>(¬_equals<const std::string &, const std::string &>), "!=");
|
||||
s.register_function(boost::function<bool (int, int)>(¬_equals<int, int>), "!=");
|
||||
s.register_function(boost::function<bool (int, double)>(¬_equals<int, double>), "!=");
|
||||
s.register_function(boost::function<bool (double, int)>(¬_equals<double, int>), "!=");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user