Skip to content

mah0x211/lua-ref

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 

lua-ref

a value reference operation module.

Installation

luarocks install ref --from=http://mah0x211.github.io/rocks/

Functions

k = ref.get( v )

create reference of the v into LUA_REGISTRYINDEX and return a reference number.

  • Parameters
    • v: value to be referenced by k.
  • Returns
    • k:integer: reference number.

v = ref.val( k )

get value of reference k.

  • Parameters
    • k:integer: reference number of value v.
  • Returns
    • v: value referenced by k.

v = ref.del( k [, retval] )

releases reference k from LUA_REGISTRYINDEX.

  • Parameters
    • k:integer: reference number.
    • retval:boolean: set to true if value is required.
  • Returns
    • v: value referenced by k.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages