Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
luna
LuNA
Commits
9be82e20
Commit
9be82e20
authored
Nov 07, 2019
by
Vladislav Perepelkin
Browse files
minor fixes
parent
1d36dd07
Changes
3
Hide whitespace changes
Inline
Side-by-side
scripts/fcmp4.py
View file @
9be82e20
...
...
@@ -65,9 +65,16 @@ def todo(*msg):
raise
NotImplementedError
(
' // '
.
join
(
res
))
def
stringify
(
obj
):
try
:
return
json
.
dumps
(
obj
,
indent
=
2
)
except
TypeError
:
return
repr
(
obj
)
def
R
(
*
js
):
raise
Exception
(
' // '
.
join
([
json
.
dumps
(
j
,
indent
=
2
)
raise
Exception
(
' // '
.
join
([
stringify
(
j
)
for
j
in
js
]))
#json.dumps(j, indent=2)
def
unindex_type
(
typespec
,
indices
):
...
...
src/rts/fp.cpp
View file @
9be82e20
...
...
@@ -11,7 +11,8 @@ typedef const char *(*StringVoid)();
FP
::~
FP
()
{
if
(
dlclose
(
so_
))
{
ABORT
(
dlerror
());
ERROR
(
dlerror
());
exit
(
1
);
}
}
...
...
src/rts/rts.cpp
View file @
9be82e20
...
...
@@ -89,7 +89,8 @@ int RTS::run()
ABORT
(
"program input argument #"
+
std
::
to_string
(
i
+
1
)
+
" type not supported: "
+
type
)
}
}
else
if
(
param
.
contains
(
"default"
))
{
//} else if (param.contains("default")) {
}
else
if
(
param
.
find
(
"default"
)
!=
param
.
end
())
{
if
(
param
[
"default"
][
"type"
]
==
"sconst"
)
{
main_cf
->
arg
(
i
)
=
param
[
"default"
][
"value"
].
get
<
std
::
string
>
();
...
...
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