Add support for std::exception and what()

This commit is contained in:
Jonathan Turner
2009-09-18 22:26:07 +00:00
parent 204d379176
commit b17c6b9748
2 changed files with 16 additions and 3 deletions

View File

@@ -674,6 +674,7 @@ namespace chaiscript
m->add(fun(&to_string<bool>), "internal_to_string");
m->add(fun(&unknown_assign), "=");
m->add(fun(&throw_exception), "throw");
m->add(fun(&what), "what");
bootstrap_pod_type<double>("double", m);
bootstrap_pod_type<int>("int", m);