MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
Loading...
Searching...
No Matches
mxvm::ExternalFunction Struct Reference

Describes an external function imported from a module or object. More...

#include <parser.hpp>

Public Member Functions

bool operator== (const ExternalFunction &f)
 Equality comparison by name and module.

Public Attributes

std::string name
 function symbol name
std::string mod
 module or object name
bool module
 true if from a module, false if from an object
VarType ret_type = VarType::VAR_INTEGER
 return type of the external function
bool ret_owned = false
 true if the return value is an owned pointer

Detailed Description

Describes an external function imported from a module or object.

Definition at line 162 of file parser.hpp.

Member Function Documentation

◆ operator==()

bool mxvm::ExternalFunction::operator== ( const ExternalFunction & f)
inline

Equality comparison by name and module.

Definition at line 167 of file parser.hpp.

References mod, and name.

Member Data Documentation

◆ mod

std::string mxvm::ExternalFunction::mod

module or object name

Definition at line 164 of file parser.hpp.

Referenced by operator==().

◆ module

bool mxvm::ExternalFunction::module

true if from a module, false if from an object

Definition at line 165 of file parser.hpp.

◆ name

std::string mxvm::ExternalFunction::name

function symbol name

Definition at line 163 of file parser.hpp.

Referenced by operator==().

◆ ret_owned

bool mxvm::ExternalFunction::ret_owned = false

true if the return value is an owned pointer

Definition at line 172 of file parser.hpp.

◆ ret_type

VarType mxvm::ExternalFunction::ret_type = VarType::VAR_INTEGER

return type of the external function

Definition at line 171 of file parser.hpp.


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