Skip to content

Commit

Permalink
rewrite of Mainclass. Produced code is now very good akigned
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad1991 committed Dec 5, 2023
1 parent 6c2384a commit 1cb6ade
Show file tree
Hide file tree
Showing 12 changed files with 419 additions and 1,822 deletions.
43 changes: 0 additions & 43 deletions R/RcppExports.R

This file was deleted.

8 changes: 2 additions & 6 deletions R/compiling.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ compiler_a2a <- function(f, verbose, reference, R_fct, desired_type, return_type
fct_ret <- NULL

if (R_fct == FALSE) {
a <- MA$new(f, desired_type, name_f, R_fct, return_type)
fct <- a$build_own(verbose, reference = reference) # build

fct <- buildFctXPtr(f, reference, desired_type, return_type, name_f)
if (getsource == TRUE) {
return(fct)
}
Expand All @@ -47,9 +45,7 @@ compiler_a2a <- function(f, verbose, reference, R_fct, desired_type, return_type
}
)
} else {
a <- MA$new(f, desired_type, name_f, R_fct, return_type)
fct <- a$build_own_SEXP(verbose, reference = reference)

fct <- buildFctR(f, name_f)
if (getsource == TRUE) {
return(fct)
}
Expand Down
Loading

0 comments on commit 1cb6ade

Please sign in to comment.