mruby/c VM Source Code release 3.4
Loading...
Searching...
No Matches
symbol.h File Reference

mruby/c Symbol class More...

#include "value.h"
#include "_autogen_builtin_symbol.h"
Include dependency graph for symbol.h:

Go to the source code of this file.

Macros

#define MRBC_SYM(sym)
#define MRB_SYM(sym)

Functions

static const char * mrbc_symbol_cstr (const mrbc_value *v)
static int mrbc_is_nested_symid (mrbc_sym sym_id)
static mrbc_sym str_to_symid (const char *str)
static const char * symid_to_str (mrbc_sym sym_id)

Detailed Description

mruby/c Symbol class

Copyright (C) 2015- Kyushu Institute of Technology.
Copyright (C) 2015- Shimane IT Open-Innovation Center.

This file is distributed under BSD 3-Clause License.

Definition in file symbol.h.

Macro Definition Documentation

◆ MRB_SYM

#define MRB_SYM ( sym)
Value:
MRBC_SYMID_##sym

Definition at line 31 of file symbol.h.

◆ MRBC_SYM

#define MRBC_SYM ( sym)
Value:
MRBC_SYMID_##sym

Macros to specify built-in symbol IDs.

Definition at line 30 of file symbol.h.

Function Documentation

◆ mrbc_is_nested_symid()

int mrbc_is_nested_symid ( mrbc_sym sym_id)
inlinestatic

is nested symbol ID ?

Parameters
sym_idtarget symbol ID.
Returns
int result.
See also
make_nested_symbol_s

Definition at line 68 of file symbol.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mrbc_symbol_cstr()

const char * mrbc_symbol_cstr ( const mrbc_value * v)
inlinestatic

get c-language string (char *)

Definition at line 55 of file symbol.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ str_to_symid()

mrbc_sym str_to_symid ( const char * str)
inlinestatic

Definition at line 77 of file symbol.h.

Here is the call graph for this function:

◆ symid_to_str()

const char * symid_to_str ( mrbc_sym sym_id)
inlinestatic

Definition at line 81 of file symbol.h.

Here is the call graph for this function: