Contents
Syntax
The syntax for
lua_setglobal(string)
@lua_setglobal(string)
Description
The
f++ example
Example of
lua_pushstring("hello, world!")
lua_setglobal("str")
lua
{
print(str)
}
n++ example
Example of
@lua_pushstring("hello, world!")
@lua_setglobal("str")
@lua
{
print(str)
}

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