mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
new constant 'LUA_GNAME' for the name of the global table "_G"
This commit is contained in:
parent
124bfd2081
commit
5a1c8d8ef3
5 changed files with 14 additions and 10 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lauxlib.h,v 1.131 2016/12/06 14:54:31 roberto Exp roberto $
|
||||
** $Id: lauxlib.h,v 1.132 2017/04/24 18:06:12 roberto Exp roberto $
|
||||
** Auxiliary functions for building Lua libraries
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -15,6 +15,10 @@
|
|||
#include "lua.h"
|
||||
|
||||
|
||||
/* global table */
|
||||
#define LUA_GNAME "_G"
|
||||
|
||||
|
||||
|
||||
/* extra error code for 'luaL_loadfilex' */
|
||||
#define LUA_ERRFILE (LUA_ERRERR+1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue