defGlobal method

LuaObject defGlobal(
  1. LuaObject value
)

Defines a global variable in the global scope with lua object value.

Implementation

LuaObject defGlobal(LuaObject value) {
  return global.defVar(value.id, value);
}