Moves JNI internal utility methods to frc namespace (#310)

This commit is contained in:
Thad House
2016-10-31 23:04:49 -07:00
committed by Peter Johnson
parent 137b3d81fb
commit 81221c4874
23 changed files with 52 additions and 0 deletions

View File

@@ -50,6 +50,8 @@ static jclass canNotInitializedExCls = nullptr;
static jclass uncleanStatusExCls = nullptr;
static jclass pwmConfigDataResultCls = nullptr;
namespace frc {
static void GetStackTrace(JNIEnv *env, std::string &res, std::string &func) {
// create a throwable
static jmethodID constructorId = nullptr;
@@ -269,6 +271,10 @@ jobject CreatePWMConfigDataResult(JNIEnv *env, int32_t maxPwm,
minPwm);
}
} // namespace frc
using namespace frc;
extern "C" {
//