ChaiScript / ChaiScript
1

2
#include <chaiscript/chaiscript_stdlib.hpp>
3

4

5
// MSVC doesn't like that we are using C++ return types from our C declared module
6
// but this is the best way to do it for cross platform compatibility
7
#ifdef CHAISCRIPT_MSVC
8
#pragma warning(push)
9
#pragma warning(disable : 4190)
10
#endif
11

12
#ifdef __llvm__
13
#pragma clang diagnostic push
14
#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
15
#endif
16

17

18 1
CHAISCRIPT_MODULE_EXPORT  chaiscript::ModulePtr create_chaiscript_module_chaiscript_stdlib()
19
{
20 1
  return chaiscript::Std_Lib::library();
21
}
22

23

24
#ifdef __llvm__
25
#pragma clang diagnostic pop
26
#endif
27

28
#ifdef CHAISCRIPT_MSVC
29
#pragma warning(pop)
30
#endif

Read our documentation on viewing source code .

Loading