IncludeJS  0.0.1
Build your own JavaScript runtime
includejs::Engine Class Reference

Public Member Functions

auto evaluate (const std::filesystem::path &path) -> Value
 
auto evaluate (const std::string &code, const std::filesystem::path &path) -> Value
 
auto evaluate (std::ifstream &stream, const std::filesystem::path &path) -> Value
 
auto bind_function (std::initializer_list< std::string > location, Function function) -> void
 
auto bind_global (std::initializer_list< std::string > location, Value value) -> void
 
auto bind_global (std::initializer_list< std::string > location, bool value) -> void
 
auto bind_global (std::initializer_list< std::string > location, int value) -> void
 
auto bind_global (std::initializer_list< std::string > location, std::initializer_list< Value > values) -> void
 
auto context () -> Context &
 

The documentation for this class was generated from the following file: