Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
NLua
Commits
780d789f
Commit
780d789f
authored
Nov 10, 2021
by
Vinicius Jarina
Browse files
Allow disabling standard libs
https://github.com/NLua/NLua/pull/436/files
parent
232110b7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/Lua.cs
View file @
780d789f
...
...
@@ -273,9 +273,9 @@ namespace NLua
}
}
public
Lua
()
public
Lua
(
bool
openLibs
=
true
)
{
_luaState
=
new
LuaState
();
_luaState
=
new
LuaState
(
openLibs
);
Init
();
// We need to keep this in a managed reference so the delegate doesn't get garbage collected
_luaState
.
AtPanic
(
PanicCallback
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment