From 5f46b4102c179680d613b6b9e0e6d392318030d2 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 8 Nov 2021 10:53:42 +0800 Subject: + tolua --- ThirdParty/tolua-5.2.4/src/tests/tarray.pkg | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ThirdParty/tolua-5.2.4/src/tests/tarray.pkg (limited to 'ThirdParty/tolua-5.2.4/src/tests/tarray.pkg') diff --git a/ThirdParty/tolua-5.2.4/src/tests/tarray.pkg b/ThirdParty/tolua-5.2.4/src/tests/tarray.pkg new file mode 100644 index 0000000..32859c9 --- /dev/null +++ b/ThirdParty/tolua-5.2.4/src/tests/tarray.pkg @@ -0,0 +1,29 @@ +$#include "tarray.h" + +struct Point +{ + float x; + float y; +}; + + +extern int a[10]; +extern const Point p[10]; +extern Point* pp[10]; + + +module M { +extern int ma[10]@a; +extern const Point mp[10]@p; +extern Point* mpp[10]@pp; +} + +struct Array +{ + int a[10]; + Point p[10]; + Point* pp[10]; +}; + +extern Array array; +extern Array* parray; -- cgit v1.1-26-g67d0