Find and fix bug in handling of bound function types_infos and arity.

Remote outdated samples. Move working samples into samples folder and make part of build process. Make building of samples optional.
Closing #107
This commit is contained in:
Jason Turner
2010-11-08 05:22:15 +00:00
parent e75a354a04
commit 906140ec78
12 changed files with 78 additions and 552 deletions

View File

@@ -148,7 +148,7 @@ int main(int argc, char *argv[]) {
catch (chaiscript::Eval_Error &ee) {
std::cout << ee.what();
if (ee.call_stack.size() > 0) {
std::cout << "during evaluation at (" << ee.call_stack[0]->filename << " " << ee.call_stack[0]->start.line << ", " << ee.call_stack[0]->start.column << ")";
std::cout << "during evaluation at (" << *(ee.call_stack[0]->filename) << " " << ee.call_stack[0]->start.line << ", " << ee.call_stack[0]->start.column << ")";
for (unsigned int j = 1; j < ee.call_stack.size(); ++j) {
std::cout << std::endl;
std::cout << " from " << ee.call_stack[j]->filename << " (" << ee.call_stack[j]->start.line << ", " << ee.call_stack[j]->start.column << ")";