mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
lua_state (now called `L') should not be global
This commit is contained in:
parent
c9c6f9747c
commit
d8a442206d
1 changed files with 2 additions and 3 deletions
5
lua.c
5
lua.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lua.c,v 1.50 2000/09/05 19:33:32 roberto Exp roberto $
|
||||
** $Id: lua.c,v 1.51 2000/09/11 19:42:57 roberto Exp roberto $
|
||||
** Lua stand-alone interpreter
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -16,8 +16,7 @@
|
|||
#include "lualib.h"
|
||||
|
||||
|
||||
lua_State *lua_state = NULL;
|
||||
#define L lua_state
|
||||
static lua_State *L = NULL;
|
||||
|
||||
|
||||
#ifndef PROMPT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue