NewLang Project
Yet another programm language
|
#include <system.h>
Public Member Functions | |
System (RuntimePtr rt) | |
virtual | ~System () |
Static Public Member Functions | |
static newlang::ObjPtr | getname (newlang::Context *ctx, newlang::Obj &in) |
static newlang::ObjPtr | getlogin (newlang::Context *ctx, newlang::Obj &in) |
static newlang::ObjPtr | getenv (newlang::Context *ctx, newlang::Obj &in) |
static newlang::ObjPtr | getmillisec (newlang::Context *ctx, newlang::Obj &in) |
static newlang::ObjPtr | gettimeofday (newlang::Context *ctx, newlang::Obj &in) |
static newlang::ObjPtr | getuname (newlang::Context *ctx, newlang::Obj &in) |
static newlang::ObjPtr | getsysinfo (newlang::Context *ctx, newlang::Obj &in) |
static newlang::ObjPtr | getenviron (newlang::Context *ctx, newlang::Obj &in) |
static newlang::ObjPtr | getcwd (newlang::Context *ctx, newlang::Obj &in) |
static newlang::ObjPtr | system (newlang::Context *ctx, newlang::Obj &in) |
Additional Inherited Members | |
![]() | |
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) |
|
inline |
Definition at line 228 of file system.h.
References newlang::runtime::Buildin::CreateMethod(), newlang::runtime::Buildin::CreateMethodNative(), getcwd(), getenv(), getenviron(), getlogin(), getmillisec(), getname(), getsysinfo(), gettimeofday(), getuname(), system(), and VERIFY.
|
inlinevirtual |
|
static |
Definition at line 176 of file system.cpp.
References newlang::Obj::CreateString().
Referenced by System().
|
static |
Definition at line 184 of file system.cpp.
References newlang::Obj::CreateString().
Referenced by System().
|
static |
Definition at line 200 of file system.cpp.
References ARG_TEST_COUNT, newlang::Obj::CreateString(), LOG_RUNTIME, and newlang::toString().
Referenced by System().
|
static |
Definition at line 258 of file system.cpp.
References newlang::Obj::CreateValue().
Referenced by System().
|
static |
Definition at line 264 of file system.cpp.
References newlang::Obj::CreateDict(), newlang::Obj::CreateValue(), and result.
Referenced by System().
|
static |
Definition at line 210 of file system.cpp.
References newlang::Obj::CreateDict(), newlang::Obj::CreateString(), LOG_RUNTIME, and result.
Referenced by System().
|
static |
Definition at line 229 of file system.cpp.
References newlang::Obj::CreateDict(), CreateTensor(), newlang::Obj::CreateValue(), LOG_RUNTIME, and result.
Referenced by System().
|
static |
Definition at line 288 of file system.cpp.
References newlang::Obj::CreateDict(), newlang::Obj::CreateString(), environ, result, and newlang::RunTime::SplitString().
Referenced by System().
|
static |
Definition at line 275 of file system.cpp.
References newlang::Obj::CreateString().
Referenced by System().
|
static |
Definition at line 306 of file system.cpp.
References ARG_TEST_COUNT, newlang::Obj::CreateString(), LOG_RUNTIME, result, and newlang::toString().
Referenced by System().