Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
QueryR
Commits
a6b1bc2d
Commit
a6b1bc2d
authored
7 years ago
by
stepan
Browse files
Options
Downloads
Patches
Plain Diff
Implement Rf_errorcall upcall
parent
c5a5a623
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
com.oracle.truffle.r.native/fficall/src/truffle_common/Rinternals_truffle_common.h
+11
-2
11 additions, 2 deletions
...ve/fficall/src/truffle_common/Rinternals_truffle_common.h
com.oracle.truffle.r.native/version.source
+1
-1
1 addition, 1 deletion
com.oracle.truffle.r.native/version.source
with
12 additions
and
3 deletions
com.oracle.truffle.r.native/fficall/src/truffle_common/Rinternals_truffle_common.h
+
11
−
2
View file @
a6b1bc2d
...
@@ -214,7 +214,16 @@ static int Rvsnprintf(char *buf, size_t size, const char *format, va_list ap) {
...
@@ -214,7 +214,16 @@ static int Rvsnprintf(char *buf, size_t size, const char *format, va_list ap) {
void
Rf_errorcall
(
SEXP
x
,
const
char
*
format
,
...)
{
void
Rf_errorcall
(
SEXP
x
,
const
char
*
format
,
...)
{
TRACE0
();
TRACE0
();
UNIMPLEMENTED
;
// See also comments in Rf_error
char
buf
[
BUFSIZE
];
va_list
(
ap
);
va_start
(
ap
,
format
);
Rvsnprintf
(
buf
,
BUFSIZE
-
1
,
format
,
ap
);
va_end
(
ap
);
((
call_Rf_errorcall
)
callbacks
[
Rf_errorcall_x
])(
x
,
ensure_string
(
buf
));
checkExitCall
();
// Should not reach here
unimplemented
(
"Unexpected return from Rf_errorcall, should be no return function"
);
}
}
void
Rf_warningcall
(
SEXP
x
,
const
char
*
format
,
...)
{
void
Rf_warningcall
(
SEXP
x
,
const
char
*
format
,
...)
{
...
@@ -253,7 +262,7 @@ void Rf_error(const char *format, ...) {
...
@@ -253,7 +262,7 @@ void Rf_error(const char *format, ...) {
// RError.error does quite a lot of stuff including potentially searching for R condition handlers
// RError.error does quite a lot of stuff including potentially searching for R condition handlers
// and, if it finds any, does not return, but throws a different exception than RError.
// and, if it finds any, does not return, but throws a different exception than RError.
// We definitely need to exit the FFI call and we certainly cannot return to our caller.
// We definitely need to exit the FFI call and we certainly cannot return to our caller.
char
buf
[
8192
];
char
buf
[
BUFSIZE
];
va_list
(
ap
);
va_list
(
ap
);
va_start
(
ap
,
format
);
va_start
(
ap
,
format
);
Rvsnprintf
(
buf
,
BUFSIZE
-
1
,
format
,
ap
);
Rvsnprintf
(
buf
,
BUFSIZE
-
1
,
format
,
ap
);
...
...
This diff is collapsed.
Click to expand it.
com.oracle.truffle.r.native/version.source
+
1
−
1
View file @
a6b1bc2d
4
8
4
9
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