Skip to content
Snippets Groups Projects
Commit 47725dd1 authored by stepan's avatar stepan
Browse files

Revert pre-processor changing SET_TYPE(x,y) to x=SET_TYPE(x,y)

As this fails Rcpp compilation.
parent 13ae8a54
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,9 @@ use_internals_end = '''#endif
'''
# This rewrite is disabled, because it causes compilation error with Rcpp
# The long term solution shall be to unify RPairList and RLanguage and
# possibly RArgsValuesAndNames(?) to be able to change the type in place.
set_typeof_rewrite = '''#ifdef FASTR
SEXP SET_TYPEOF_FASTR(SEXP x, int v);
#ifndef NO_FASTR_REDEFINE
......@@ -113,9 +116,10 @@ def ed_r_internals(gnu_dir):
rewrite_var(f, var, line)
else:
f.write(line)
elif 'SET_TYPEOF' in line and '(SEXP' in line:
f.write(line)
f.write(set_typeof_rewrite)
# disabled because of compilations problems with Rcpp
# elif 'SET_TYPEOF' in line and '(SEXP' in line:
# f.write(line)
# f.write(set_typeof_rewrite)
else:
f.write(line)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment