Spelling fixes, phase 1.

This commit is contained in:
Jason Turner
2014-05-29 20:16:47 -06:00
parent e5d723621f
commit 4018c873dc
18 changed files with 65 additions and 66 deletions

View File

@@ -3,7 +3,7 @@
extern "C"
{
int dosomething(int i)
int do_something(int i)
{
return i % 2;
}
@@ -13,8 +13,8 @@ int main()
{
chaiscript::ChaiScript chai;
chai.add(chaiscript::fun(&dosomething), "dosomething");
chai.add(chaiscript::fun(&do_something), "do_something");
return chai.eval<int>("dosomething(101)") == 101 % 2?EXIT_SUCCESS:EXIT_FAILURE;
return chai.eval<int>("do_something(101)") == 101 % 2?EXIT_SUCCESS:EXIT_FAILURE;
}