NewLang Project
Yet another programm language
Loading...
Searching...
No Matches
newlang::runtime::Base Class Reference

#include <system.h>

Inheritance diagram for newlang::runtime::Base:

Public Member Functions

 Base (RuntimePtr rt)
 
virtual ~Base ()
 

Static Public Member Functions

static newlang::ObjPtr __assert_abort__ (newlang::Context *ctx, newlang::Obj &in)
 
static newlang::ObjPtr __timeit__ (newlang::Context *ctx, newlang::Obj &in)
 
static newlang::ObjPtr __len__ (newlang::Context *ctx, newlang::Obj &in)
 
static newlang::ObjPtr __thread_this_id__ (newlang::Context *ctx, newlang::Obj &in)
 
static newlang::ObjPtr __thread_hardware_concurrency__ (newlang::Context *ctx, newlang::Obj &in)
 
static newlang::ObjPtr __thread_get_id__ (newlang::Context *ctx, newlang::Obj &in)
 
static newlang::ObjPtr __thread_start__ (newlang::Context *ctx, newlang::Obj &in)
 
static newlang::ObjPtr __thread_join__ (newlang::Context *ctx, newlang::Obj &in)
 
static newlang::ObjPtr __thread_joinable__ (newlang::Context *ctx, newlang::Obj &in)
 

Additional Inherited Members

- Protected Member Functions inherited from newlang::runtime::Buildin
 Buildin (RuntimePtr rt, ObjType type, const char *name=nullptr)
 
bool CreateMethod (const char *proto, FunctionType &func, ObjType type=ObjType::Function)
 
bool CreateMethodNative (const char *proto, void *addr)
 
bool AddMethod (const char *name, ObjPtr obj)
 

Detailed Description

Definition at line 91 of file system.h.

Constructor & Destructor Documentation

◆ Base()

Base::Base ( RuntimePtr rt)

Definition at line 346 of file system.cpp.

References __assert_abort__(), newlang::runtime::Buildin::CreateMethod(), and VERIFY.

◆ ~Base()

virtual newlang::runtime::Base::~Base ( )
inlinevirtual

Definition at line 207 of file system.h.

Member Function Documentation

◆ __assert_abort__()

newlang::ObjPtr Base::__assert_abort__ ( newlang::Context * ctx,
newlang::Obj & in )
static

Definition at line 79 of file system.cpp.

References newlang::Obj::CreateNone(), and LOG_RUNTIME.

Referenced by Base(), and newlang::RunTime::InitInternal().

◆ __timeit__()

newlang::ObjPtr Base::__timeit__ ( newlang::Context * ctx,
newlang::Obj & in )
static

◆ __len__()

newlang::ObjPtr Base::__len__ ( newlang::Context * ctx,
newlang::Obj & in )
static

Definition at line 95 of file system.cpp.

References newlang::Obj::CreateValue(), and LOG_RUNTIME.

Referenced by newlang::RunTime::InitInternal().

◆ __thread_this_id__()

newlang::ObjPtr Base::__thread_this_id__ ( newlang::Context * ctx,
newlang::Obj & in )
static

Definition at line 128 of file system.cpp.

References newlang::Obj::CreateValue().

Referenced by newlang::RunTime::InitInternal().

◆ __thread_hardware_concurrency__()

newlang::ObjPtr Base::__thread_hardware_concurrency__ ( newlang::Context * ctx,
newlang::Obj & in )
static

Definition at line 132 of file system.cpp.

References newlang::Obj::CreateValue().

Referenced by newlang::RunTime::InitInternal().

◆ __thread_get_id__()

newlang::ObjPtr Base::__thread_get_id__ ( newlang::Context * ctx,
newlang::Obj & in )
static

Definition at line 136 of file system.cpp.

References newlang::Obj::CreateNone().

Referenced by newlang::RunTime::InitInternal().

◆ __thread_start__()

newlang::ObjPtr Base::__thread_start__ ( newlang::Context * ctx,
newlang::Obj & in )
static

Definition at line 141 of file system.cpp.

References newlang::Obj::CreateNone().

Referenced by newlang::RunTime::InitInternal().

◆ __thread_join__()

newlang::ObjPtr Base::__thread_join__ ( newlang::Context * ctx,
newlang::Obj & in )
static

Definition at line 145 of file system.cpp.

References newlang::Obj::CreateNone().

Referenced by newlang::RunTime::InitInternal().

◆ __thread_joinable__()

newlang::ObjPtr Base::__thread_joinable__ ( newlang::Context * ctx,
newlang::Obj & in )
static

Definition at line 149 of file system.cpp.

References newlang::Obj::CreateBool().

Referenced by newlang::RunTime::InitInternal().


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