mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Add Java nivision wrappers.
Only very basic testing performed to date. The wrappers are still a bit incomplete (some structures and functions), but are much more complete than the old ones. Fixes artf3796. Changes from initial changeset: - Use // for comments. - Add auto-generate notices to the beginning of each generated file. - Include error number with error text in exception. - Add free() function to structures. - Fix out-of-order / non-array enums. - Avoid duplicate calls to DisposedStruct.write() as .getAddress() does it. - Refactor OpaqueStruct. - Default to no null allowed except when overridden. - Implement unowned return values. - Add gen_struct_sizer script. Change-Id: Ie0d102c45817ea8812d98fe4938d1a2255c61664
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// This file is auto-generated by wpilibj/wpilibJavaJNI/nivision/gen_java.py
|
||||
// Please do not edit!
|
||||
//
|
||||
|
||||
package com.ni.vision;
|
||||
|
||||
public class VisionException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public VisionException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "VisionException [" + super.toString() + "]";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user