All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Typedefs | Functions
api.h File Reference
#include <cassert>
#include <functional>
#include "common.h"
#include "compile.h"
#include "vm.h"

Go to the source code of this file.

Namespaces

 uscript
 

Typedefs

template<typename T >
using uscript::JustAChar = const char *
 
template<typename T >
using uscript::JustACharRef = const char *&
 

Functions

void uscript::SetAll (VM &vm, std::initializer_list< const char * > names)
 
template<typename... Ts>
void uscript::_swallow (Ts &&...)
 
template<typename... TObjs>
void uscript::RegisterAll ()
 
template<typename... TObjs>
void uscript::AddAll (VM &vm)
 
template<typename T , typename... TObjs>
void uscript::AddAll (VM &vm, JustACharRef< T > name, JustACharRef< TObjs >...names, const T *&obj, const TObjs *&...objs)
 
template<typename... TObjs>
Chunk uscript::compileChunk (const char *source)
 
template<typename... TObjs>
std::function< uscript::Value(const
TObjs *...)> 
uscript::compile (JustAChar< TObjs >...names, const char *source)