Skip to content

Commit 0065864

Browse files
authored
Merge pull request #5 from vidyagirl/patch-1
add getGlobalVar() function
2 parents 76cf3db + e5eac85 commit 0065864

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vm/lua/Lua.hx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ class Lua {
8181
lua_setglobal(l, name);
8282
}
8383

84+
public function getGlobalVar(name:String) {
85+
return lua_getglobal(l, name);
86+
}
87+
8488
public function destroy() {
8589
lua_close(l);
8690
l = null;

0 commit comments

Comments
 (0)