Skip to content

Commit 064a385

Browse files
committed
Merge branch 'develop' of github.com:ChaiScript/ChaiScript into develop
2 parents 87f1242 + e342243 commit 064a385

35 files changed

Lines changed: 168 additions & 21 deletions

include/chaiscript/chaiscript.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
55
// http://www.chaiscript.com
66

7+
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
8+
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
9+
10+
711
#ifndef CHAISCRIPT_HPP_
812
#define CHAISCRIPT_HPP_
913

include/chaiscript/chaiscript_threading.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
55
// http://www.chaiscript.com
66

7+
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
8+
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
9+
10+
711
#ifndef CHAISCRIPT_THREADING_HPP_
812
#define CHAISCRIPT_THREADING_HPP_
913

include/chaiscript/dispatchkit/bad_boxed_cast.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
55
// http://www.chaiscript.com
66

7+
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
8+
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
9+
10+
711
#ifndef CHAISCRIPT_BAD_BOXED_CAST_HPP_
812
#define CHAISCRIPT_BAD_BOXED_CAST_HPP_
913

include/chaiscript/dispatchkit/bind_first.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
55
// http://www.chaiscript.com
66

7+
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
8+
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
9+
10+
711
#ifndef CHAISCRIPT_BIND_FIRST_HPP_
812
#define CHAISCRIPT_BIND_FIRST_HPP_
913

include/chaiscript/dispatchkit/bootstrap.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
55
// http://www.chaiscript.com
66

7+
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
8+
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
9+
10+
711
#ifndef CHAISCRIPT_BOOTSTRAP_HPP_
812
#define CHAISCRIPT_BOOTSTRAP_HPP_
913

include/chaiscript/dispatchkit/bootstrap_stl.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
55
// http://www.chaiscript.com
66

7+
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
8+
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
9+
10+
711
/// \file
812
/// This file contains utility functions for registration of STL container
913
/// classes. The methodology used is based on the SGI STL concepts.

include/chaiscript/dispatchkit/boxed_cast.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
55
// http://www.chaiscript.com
66

7+
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
8+
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
9+
10+
711
#ifndef CHAISCRIPT_BOXED_CAST_HPP_
812
#define CHAISCRIPT_BOXED_CAST_HPP_
913

include/chaiscript/dispatchkit/boxed_cast_helper.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
55
// http://www.chaiscript.com
66

7+
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
8+
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
9+
10+
711
#ifndef CHAISCRIPT_BOXED_CAST_HELPER_HPP_
812
#define CHAISCRIPT_BOXED_CAST_HELPER_HPP_
913

include/chaiscript/dispatchkit/boxed_number.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
55
// http://www.chaiscript.com
66

7+
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
8+
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
9+
710
#ifndef CHAISCRIPT_BOXED_NUMERIC_HPP_
811
#define CHAISCRIPT_BOXED_NUMERIC_HPP_
912

@@ -588,12 +591,20 @@ namespace chaiscript
588591
template<typename Source, typename Target>
589592
static void check_type()
590593
{
594+
#ifdef CHAISCRIPT_MSVC
595+
// MSVC complains about this being redundant / tautologica l
596+
#pragma warning(push)
597+
#pragma warning(disable : 4127 6287)
598+
#endif
591599
if (sizeof(Source) != sizeof(Target)
592600
|| std::is_signed<Source>() != std::is_signed<Target>()
593601
|| std::is_floating_point<Source>() != std::is_floating_point<Target>())
594602
{
595603
throw chaiscript::detail::exception::bad_any_cast();
596604
}
605+
#ifdef CHAISCRIPT_MSVC
606+
#pragma warning(pop)
607+
#endif
597608
}
598609

599610
template<typename Target> Target get_as_checked() const

include/chaiscript/dispatchkit/boxed_value.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
55
// http://www.chaiscript.com
66

7+
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
8+
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
9+
10+
711
#ifndef CHAISCRIPT_BOXED_VALUE_HPP_
812
#define CHAISCRIPT_BOXED_VALUE_HPP_
913

0 commit comments

Comments
 (0)