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

#include <system.h>

Inheritance diagram for newlang::runtime::Buildin:

Protected Member Functions

 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 48 of file system.h.

Constructor & Destructor Documentation

◆ Buildin()

newlang::runtime::Buildin::Buildin ( RuntimePtr rt,
ObjType type,
const char * name = nullptr )
inlineprotected

Definition at line 57 of file system.h.

References ASSERT, LOG_RUNTIME, newlang::Parser::ParseTerm(), and newlang::toString().

Member Function Documentation

◆ CreateMethod()

bool Buildin::CreateMethod ( const char * proto,
FunctionType & func,
ObjType type = ObjType::Function )
protected

◆ CreateMethodNative()

bool Buildin::CreateMethodNative ( const char * proto,
void * addr )
protected

Definition at line 43 of file system.cpp.

References ASSERT, LOG_ERROR, and newlang::Parser::ParseTerm().

Referenced by newlang::runtime::System::System().

◆ AddMethod()

bool Buildin::AddMethod ( const char * name,
ObjPtr obj )
protected

Definition at line 22 of file system.cpp.

References LOG_RUNTIME.


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