Fix cppcheck warnings

This commit is contained in:
Jason Turner
2016-01-29 20:00:20 -07:00
parent 0dab950ebf
commit 7f4ef8d8fd
2 changed files with 8 additions and 6 deletions

View File

@@ -7,20 +7,22 @@ int main( int /*argc*/ , char * /*argv*/[] )
{
chaiscript::ChaiScript ch( chaiscript::Std_Lib::library( ) );
static const char script[ ] =
R""(
try
{
static const char script[ ] =
R""(
class Rectangle
{
def Rectangle() { }
}
var rect = Rectangle( );
var rect = Rectangle( );
)"";
try
{
ch.eval( script );
}
catch ( const std::exception &e )