Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

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

Packages

No packages published

Languages