mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Moves JNI internal utility methods to frc namespace (#310)
This commit is contained in:
committed by
Peter Johnson
parent
137b3d81fb
commit
81221c4874
@@ -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" {
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user