GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
chaiscript.hpp
Go to the documentation of this file.
1// This file is distributed under the BSD License.
2// See "license.txt" for details.
3// Copyright 2009-2012, Jonathan Turner (jonathan@emptycrate.com)
4// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
5// http://www.chaiscript.com
6
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
11#ifndef CHAISCRIPT_HPP_
12#define CHAISCRIPT_HPP_
13
14
15
485
486
487
521
542
654
655
815
816
819
822
823#include "chaiscript_basic.hpp"
825#include "chaiscript_stdlib.hpp"
826
827
828namespace chaiscript
829{
831 {
832 public:
833 ChaiScript(std::vector<std::string> t_modulepaths = {},
834 std::vector<std::string> t_usepaths = {},
835 const std::vector<Options> &t_opts = chaiscript::default_options())
837 chaiscript::Std_Lib::library(),
838 std::make_unique<parser::ChaiScript_Parser<eval::Noop_Tracer, optimizer::Optimizer_Default>>(),
839 t_modulepaths, t_usepaths, t_opts)
840 {
841 }
842 };
843}
844
845#endif /* CHAISCRIPT_HPP_ */
ChaiScript_Basic(const ModulePtr &t_lib, std::unique_ptr< parser::ChaiScript_Parser_Base > &&parser, std::vector< std::string > t_module_paths={}, std::vector< std::string > t_use_paths={}, const std::vector< chaiscript::Options > &t_opts=chaiscript::default_options())
Constructor for ChaiScript.
Definition chaiscript_engine.hpp:269
ChaiScript(std::vector< std::string > t_modulepaths={}, std::vector< std::string > t_usepaths={}, const std::vector< Options > &t_opts=chaiscript::default_options())
Definition chaiscript.hpp:833
Namespace chaiscript contains every API call that the average user will be concerned with.
std::unique_ptr< B > make_unique(Arg &&... arg)
Definition chaiscript_defines.hpp:97
STL namespace.