Is there any way to get the current line of code that ChaiScript is executing from C++? For example, this is what you would do in Lua:
lua_Debug ar;
lua_getstack(L, 1, &ar);
lua_getinfo(L, "Sl", &ar);
int line = ar.currentline;
std::string file = ar.source;
(code partially ripped from here)