rstudio / rscrypt

scrypt cryptographic functions for R

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

consider using anonymous namespaces for internal linkage

jjallaire opened this issue · comments

It's really just a matter of taste but you could protect the linkage of source-file level helpers by enclosing them in an anonymous namespace (rather than using static). e.g.

namespace {

int helper() {
// etc
}

}