Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
bdf82447
Commit
bdf82447
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
temp fix for lock in non-interactive lua session
parent
25dc38ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Common/LuaBindings.cpp
+3
-0
3 additions, 0 deletions
Common/LuaBindings.cpp
with
3 additions
and
0 deletions
Common/LuaBindings.cpp
+
3
−
0
View file @
bdf82447
...
@@ -138,6 +138,8 @@ static int luaClear (lua_State *L){
...
@@ -138,6 +138,8 @@ static int luaClear (lua_State *L){
int
binding
::
readFile
(
const
char
*
filename
)
int
binding
::
readFile
(
const
char
*
filename
)
{
{
int
lock
=
CTX
::
instance
()
->
lock
;
CTX
::
instance
()
->
lock
=
0
;
checkDocCompleteness
();
checkDocCompleteness
();
int
s
=
luaL_loadfile
(
L
,
filename
);
int
s
=
luaL_loadfile
(
L
,
filename
);
if
(
s
==
0
)
{
if
(
s
==
0
)
{
...
@@ -146,6 +148,7 @@ int binding::readFile(const char *filename)
...
@@ -146,6 +148,7 @@ int binding::readFile(const char *filename)
}
}
reportErrors
(
L
,
s
);
reportErrors
(
L
,
s
);
lua_close
(
L
);
lua_close
(
L
);
CTX
::
instance
()
->
lock
=
lock
;
return
(
s
==
0
);
return
(
s
==
0
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment