fn: lua_addnsmfns
[contents]
f++ :
n++ :
Contents
Syntax
The syntax for
lua_addnsmfns()
@lua_addnsmfns()
Description
The
| syntax | example | about |
|---|---|---|
| set Nift variable from number | ||
| set Nift variable from string | ||
| get pointer to Nift variable | ||
| get number from Nift variable | ||
| get string from Nift variable | ||
| write to console, output file (ofile), or a stream | ||
| syntax | example | about |
f++ example
Example of
:=(int, x=10)
lua_addnsmfns
lua
{
nsm_write(console, "x: ", nsm_tonumber("x"), endl)
}
n++ example
Example of
@:=(int, x=10)
@lua_addnsmfns
@lua
{
nsm_write(console, "x: ", nsm_tonumber("x"), endl)
}

![[ports] (FreeBSD) Get it from the FreeBSD [ports]](../../images/freebsd.webp)
