src/vm/oba_builtins.h
Value __native_global(ObaVM* vm, int argc, Value* argv) {
  if (vm->allowGlobals) {
    ASSERT_ARITY(vm, argc, 2);
    tableSet(vm, vm->globals, AS_STRING(argv[0]), argv[1]);
  } else {
    obaErrorf(vm, "illegal global definition");
  }
  return NIL_VAL;
}
// Exports a symbol from a module as a VM global, available to all modules.
// This can only be called by the builtin module which is packaged with the VM.
Exports a symbol from a module as a VM global, available to all modules.
This can only be called by the builtin module which is packaged with the VM.
Exports a symbol from a module as a VM global available to all modules . This can only be called by the builtin module which is packaged with the VM .
Value __native_global(ObaVM* vm, int argc, Value* argv) {
  if (vm->allowGlobals) {
    ASSERT_ARITY(vm, argc, 2);
    tableSet(vm, vm->globals, AS_STRING(argv[0]), argv[1]);
  } else {
    obaErrorf(vm, "illegal global definition");
  }
  return NIL_VAL;
}
Value __native_global ( ObaVM * vm , int argc , Value * argv ) { if ( vm -> allowGlobals ) { ASSERT_ARITY ( vm , argc , 2 ) ; tableSet ( vm , vm -> globals , AS_STRING ( argv [ 0 ] ) , argv [ 1 ] ) ; } else { obaErrorf ( vm , " " ) ; } return NIL_VAL ; }
Exports a symbol from a module as a VM global, available to all modules.
Exports a symbol from a module as a VM global available to all modules .