mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-23 05:10:00 +00:00
[C++] Add unit test for native_type usage
This commit is contained in:
16
tests/vector3d.h
Normal file
16
tests/vector3d.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef VECTOR3D_H
|
||||
#define VECTOR3D_H
|
||||
|
||||
namespace Native {
|
||||
struct Vector3D {
|
||||
public:
|
||||
double x;
|
||||
double y;
|
||||
double z;
|
||||
|
||||
Vector3D() = default;
|
||||
Vector3D(double x, double y, double z) { this->x = x; this->y = y; this->z = z; }
|
||||
};
|
||||
}
|
||||
|
||||
#endif // VECTOR3D_H
|
||||
Reference in New Issue
Block a user